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, scriptLoadclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpsubscribe, subscribeprotected 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.JedisExceptionpublic redis.clients.util.Pool<redis.clients.jedis.Jedis> getPool()
public void startMonitor()
RedisExecutorpublic void stopMonitor()
RedisExecutorCopyright © 2019 Nuxeo. All rights reserved.