public class ConnectionFactory extends Object implements org.apache.commons.pool2.PooledObjectFactory<Connection>
| Constructor and Description |
|---|
ConnectionFactory(HostAndPort hostAndPort) |
ConnectionFactory(HostAndPort hostAndPort,
JedisClientConfig clientConfig) |
ConnectionFactory(JedisSocketFactory jedisSocketFactory,
JedisClientConfig clientConfig) |
| Modifier and Type | Method and Description |
|---|---|
void |
activateObject(org.apache.commons.pool2.PooledObject<Connection> pooledConnection) |
void |
destroyObject(org.apache.commons.pool2.PooledObject<Connection> pooledConnection) |
org.apache.commons.pool2.PooledObject<Connection> |
makeObject() |
void |
passivateObject(org.apache.commons.pool2.PooledObject<Connection> pooledConnection) |
void |
setPassword(String password) |
boolean |
validateObject(org.apache.commons.pool2.PooledObject<Connection> pooledConnection) |
public ConnectionFactory(HostAndPort hostAndPort)
public ConnectionFactory(HostAndPort hostAndPort, JedisClientConfig clientConfig)
public ConnectionFactory(JedisSocketFactory jedisSocketFactory, JedisClientConfig clientConfig)
public void setPassword(String password)
public void activateObject(org.apache.commons.pool2.PooledObject<Connection> pooledConnection) throws Exception
activateObject in interface org.apache.commons.pool2.PooledObjectFactory<Connection>Exceptionpublic void destroyObject(org.apache.commons.pool2.PooledObject<Connection> pooledConnection) throws Exception
destroyObject in interface org.apache.commons.pool2.PooledObjectFactory<Connection>Exceptionpublic org.apache.commons.pool2.PooledObject<Connection> makeObject() throws Exception
makeObject in interface org.apache.commons.pool2.PooledObjectFactory<Connection>Exceptionpublic void passivateObject(org.apache.commons.pool2.PooledObject<Connection> pooledConnection) throws Exception
passivateObject in interface org.apache.commons.pool2.PooledObjectFactory<Connection>Exceptionpublic boolean validateObject(org.apache.commons.pool2.PooledObject<Connection> pooledConnection)
validateObject in interface org.apache.commons.pool2.PooledObjectFactory<Connection>Copyright © 2022. All rights reserved.