Class BaseClientFactory<K,​V>

  • All Implemented Interfaces:
    org.apache.commons.pool2.KeyedPooledObjectFactory<K,​V>
    Direct Known Subclasses:
    ThriftClientFactory

    public abstract class BaseClientFactory<K,​V>
    extends java.lang.Object
    implements org.apache.commons.pool2.KeyedPooledObjectFactory<K,​V>
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void activateObject​(K node, org.apache.commons.pool2.PooledObject<V> pooledObject)  
      void passivateObject​(K node, org.apache.commons.pool2.PooledObject<V> pooledObject)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface org.apache.commons.pool2.KeyedPooledObjectFactory

        destroyObject, destroyObject, makeObject, validateObject
    • Constructor Detail

      • BaseClientFactory

        protected BaseClientFactory​(ClientManager<K,​V> clientManager)
    • Method Detail

      • activateObject

        public void activateObject​(K node,
                                   org.apache.commons.pool2.PooledObject<V> pooledObject)
        Specified by:
        activateObject in interface org.apache.commons.pool2.KeyedPooledObjectFactory<K,​V>
      • passivateObject

        public void passivateObject​(K node,
                                    org.apache.commons.pool2.PooledObject<V> pooledObject)
        Specified by:
        passivateObject in interface org.apache.commons.pool2.KeyedPooledObjectFactory<K,​V>