public class RedisPoolExecutor extends RedisAbstractExecutor
Modifier and Type | Field and Description |
---|---|
protected ThreadLocal<redis.clients.jedis.Jedis> |
holder |
protected redis.clients.util.Pool<redis.clients.jedis.Jedis> |
pool |
scripts
Constructor and Description |
---|
RedisPoolExecutor(redis.clients.util.Pool<redis.clients.jedis.Jedis> pool) |
Modifier and Type | Method and Description |
---|---|
<T> T |
execute(RedisCallable<T> callable) |
redis.clients.util.Pool<redis.clients.jedis.Jedis> |
getPool() |
void |
startMonitor()
Start to trace Redis activity only for debug purpose.
|
void |
stopMonitor()
Stop tracing Redis activity.
|
evalsha, evalsha, scriptLoad
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
psubscribe, subscribe
protected redis.clients.util.Pool<redis.clients.jedis.Jedis> pool
protected final ThreadLocal<redis.clients.jedis.Jedis> holder
public RedisPoolExecutor(redis.clients.util.Pool<redis.clients.jedis.Jedis> pool)
public <T> T execute(RedisCallable<T> callable) throws redis.clients.jedis.exceptions.JedisException
redis.clients.jedis.exceptions.JedisException
public redis.clients.util.Pool<redis.clients.jedis.Jedis> getPool()
public void startMonitor()
RedisExecutor
public void stopMonitor()
RedisExecutor
Copyright © 2018 Nuxeo. All rights reserved.