Class D2ClientFactory


  • public class D2ClientFactory
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      D2ClientFactory()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static com.linkedin.d2.balancer.D2Client getD2Client​(java.lang.String d2ZkHost, java.util.Optional<SSLFactory> sslFactoryOptional)  
      static void release​(java.lang.String d2ZkHost)  
      static void resetUnitTestMode()  
      static void setD2Client​(java.lang.String d2ZkHost, com.linkedin.d2.balancer.D2Client d2Client)  
      static void setUnitTestMode()  
      • Methods inherited from class java.lang.Object

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

      • SHARED_OBJECT_FACTORY

        protected static final SharedObjectFactory<com.linkedin.d2.balancer.D2Client> SHARED_OBJECT_FACTORY
    • Constructor Detail

      • D2ClientFactory

        public D2ClientFactory()
    • Method Detail

      • setUnitTestMode

        public static void setUnitTestMode()
      • resetUnitTestMode

        public static void resetUnitTestMode()
      • setD2Client

        public static void setD2Client​(java.lang.String d2ZkHost,
                                       com.linkedin.d2.balancer.D2Client d2Client)
      • getD2Client

        public static com.linkedin.d2.balancer.D2Client getD2Client​(java.lang.String d2ZkHost,
                                                                    java.util.Optional<SSLFactory> sslFactoryOptional)
      • release

        public static void release​(java.lang.String d2ZkHost)