protected static class TinyShardedJedisSentinelPool.ShardedJedisFactory extends Object implements org.apache.commons.pool2.PooledObjectFactory<TinyShardJedis>
Constructor and Description |
---|
ShardedJedisFactory(List<redis.clients.jedis.JedisShardInfo> shards,
redis.clients.util.Hashing algo,
Pattern keyTagPattern) |
Modifier and Type | Method and Description |
---|---|
void |
activateObject(org.apache.commons.pool2.PooledObject<TinyShardJedis> p) |
void |
destroyObject(org.apache.commons.pool2.PooledObject<TinyShardJedis> pooledShardedJedis) |
org.apache.commons.pool2.PooledObject<TinyShardJedis> |
makeObject() |
void |
passivateObject(org.apache.commons.pool2.PooledObject<TinyShardJedis> p) |
boolean |
validateObject(org.apache.commons.pool2.PooledObject<TinyShardJedis> pooledShardedJedis) |
protected final Logger LOGGER2
public org.apache.commons.pool2.PooledObject<TinyShardJedis> makeObject() throws Exception
makeObject
in interface org.apache.commons.pool2.PooledObjectFactory<TinyShardJedis>
Exception
public void destroyObject(org.apache.commons.pool2.PooledObject<TinyShardJedis> pooledShardedJedis) throws Exception
destroyObject
in interface org.apache.commons.pool2.PooledObjectFactory<TinyShardJedis>
Exception
public boolean validateObject(org.apache.commons.pool2.PooledObject<TinyShardJedis> pooledShardedJedis)
validateObject
in interface org.apache.commons.pool2.PooledObjectFactory<TinyShardJedis>
public void activateObject(org.apache.commons.pool2.PooledObject<TinyShardJedis> p) throws Exception
activateObject
in interface org.apache.commons.pool2.PooledObjectFactory<TinyShardJedis>
Exception
public void passivateObject(org.apache.commons.pool2.PooledObject<TinyShardJedis> p) throws Exception
passivateObject
in interface org.apache.commons.pool2.PooledObjectFactory<TinyShardJedis>
Exception
Copyright © 2006–2018 TinyGroup. All rights reserved.