public static class ShardedJedisPool.ShardedJedisFactory extends Object implements org.apache.commons.pool2.PooledObjectFactory<ShardedJedis>
Constructor and Description |
---|
ShardedJedisFactory(List<JedisShardInfo> shards,
Hashing algo,
Pattern keyTagPattern) |
Modifier and Type | Method and Description |
---|---|
void |
activateObject(org.apache.commons.pool2.PooledObject<ShardedJedis> p) |
void |
destroyObject(org.apache.commons.pool2.PooledObject<ShardedJedis> pooledShardedJedis) |
org.apache.commons.pool2.PooledObject<ShardedJedis> |
makeObject() |
void |
passivateObject(org.apache.commons.pool2.PooledObject<ShardedJedis> p) |
boolean |
validateObject(org.apache.commons.pool2.PooledObject<ShardedJedis> pooledShardedJedis) |
public ShardedJedisFactory(List<JedisShardInfo> shards, Hashing algo, Pattern keyTagPattern)
public org.apache.commons.pool2.PooledObject<ShardedJedis> makeObject() throws Exception
makeObject
in interface org.apache.commons.pool2.PooledObjectFactory<ShardedJedis>
Exception
public void destroyObject(org.apache.commons.pool2.PooledObject<ShardedJedis> pooledShardedJedis) throws Exception
destroyObject
in interface org.apache.commons.pool2.PooledObjectFactory<ShardedJedis>
Exception
public boolean validateObject(org.apache.commons.pool2.PooledObject<ShardedJedis> pooledShardedJedis)
validateObject
in interface org.apache.commons.pool2.PooledObjectFactory<ShardedJedis>
public void activateObject(org.apache.commons.pool2.PooledObject<ShardedJedis> p) throws Exception
activateObject
in interface org.apache.commons.pool2.PooledObjectFactory<ShardedJedis>
Exception
public void passivateObject(org.apache.commons.pool2.PooledObject<ShardedJedis> p) throws Exception
passivateObject
in interface org.apache.commons.pool2.PooledObjectFactory<ShardedJedis>
Exception
Copyright © 2022. All rights reserved.