Class ConnectionFactory

java.lang.Object
redis.clients.jedis.ConnectionFactory
All Implemented Interfaces:
org.apache.commons.pool2.PooledObjectFactory<Connection>

public class ConnectionFactory extends Object implements org.apache.commons.pool2.PooledObjectFactory<Connection>
PoolableObjectFactory custom impl.
  • Field Details

    • logger

      private static final org.slf4j.Logger logger
    • jedisSocketFactory

      private final JedisSocketFactory jedisSocketFactory
    • clientConfig

      private final JedisClientConfig clientConfig
  • Constructor Details

  • Method Details

    • setPassword

      @Deprecated public void setPassword(String password)
    • activateObject

      public void activateObject(org.apache.commons.pool2.PooledObject<Connection> pooledConnection) throws Exception
      Specified by:
      activateObject in interface org.apache.commons.pool2.PooledObjectFactory<Connection>
      Throws:
      Exception
    • destroyObject

      public void destroyObject(org.apache.commons.pool2.PooledObject<Connection> pooledConnection) throws Exception
      Specified by:
      destroyObject in interface org.apache.commons.pool2.PooledObjectFactory<Connection>
      Throws:
      Exception
    • makeObject

      public org.apache.commons.pool2.PooledObject<Connection> makeObject() throws Exception
      Specified by:
      makeObject in interface org.apache.commons.pool2.PooledObjectFactory<Connection>
      Throws:
      Exception
    • passivateObject

      public void passivateObject(org.apache.commons.pool2.PooledObject<Connection> pooledConnection) throws Exception
      Specified by:
      passivateObject in interface org.apache.commons.pool2.PooledObjectFactory<Connection>
      Throws:
      Exception
    • validateObject

      public boolean validateObject(org.apache.commons.pool2.PooledObject<Connection> pooledConnection)
      Specified by:
      validateObject in interface org.apache.commons.pool2.PooledObjectFactory<Connection>