Class UseTCPACKSCache


  • public class UseTCPACKSCache
    extends java.lang.Object
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      class  UseTCPACKSCache.DetectedValue
      This class tracks if useTCPACKS have either been set or successfully detected.
    • Constructor Summary

      Constructors 
      Constructor Description
      UseTCPACKSCache()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void detect​(FCClientEngine engine)
      this will try to detect if we should use TCPACKS we will no longer try to detect if we do so successfully.
      void forceSet​(FCClientEngine engine, boolean useTCPACKS)
      overrides all checks and forces the useage of TCPACKS
      boolean isUseTCPACKS​(FCClientEngine engine)  
      void set​(FCClientEngine engine, boolean useTCPACKS)
      Set the value if it has not already been set or detected
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • UseTCPACKSCache

        public UseTCPACKSCache()
    • Method Detail

      • isUseTCPACKS

        public boolean isUseTCPACKS​(FCClientEngine engine)
        Parameters:
        engine - the FCClientEngine that is checking if we are using TCPACKS
        Returns:
        true if we are using TCPACKS
      • set

        public void set​(FCClientEngine engine,
                        boolean useTCPACKS)
        Set the value if it has not already been set or detected
        Parameters:
        engine - the engine requesting a set
        isUseTCPACKS -
      • forceSet

        public void forceSet​(FCClientEngine engine,
                             boolean useTCPACKS)
        overrides all checks and forces the useage of TCPACKS
        Parameters:
        isUseTCPACKS -
      • detect

        public void detect​(FCClientEngine engine)
        this will try to detect if we should use TCPACKS we will no longer try to detect if we do so successfully.
        Parameters:
        engine - the engine doing the test