Package org.nuxeo.ecm.core.redis
Class RedisPoolExecutor
- java.lang.Object
-
- org.nuxeo.ecm.core.redis.RedisAbstractExecutor
-
- org.nuxeo.ecm.core.redis.RedisPoolExecutor
-
- All Implemented Interfaces:
RedisExecutor
public class RedisPoolExecutor extends RedisAbstractExecutor
-
-
Field Summary
Fields Modifier and Type Field Description protected ThreadLocal<redis.clients.jedis.Jedis>
holder
protected redis.clients.util.Pool<redis.clients.jedis.Jedis>
pool
-
Fields inherited from class org.nuxeo.ecm.core.redis.RedisAbstractExecutor
scripts
-
-
Constructor Summary
Constructors Constructor Description RedisPoolExecutor(redis.clients.util.Pool<redis.clients.jedis.Jedis> pool)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.-
Methods inherited from class org.nuxeo.ecm.core.redis.RedisAbstractExecutor
evalsha, evalsha, scriptLoad
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.nuxeo.ecm.core.redis.RedisExecutor
psubscribe, subscribe
-
-
-
-
Field Detail
-
pool
protected redis.clients.util.Pool<redis.clients.jedis.Jedis> pool
-
holder
protected final ThreadLocal<redis.clients.jedis.Jedis> holder
-
-
Method Detail
-
execute
public <T> T execute(RedisCallable<T> callable) throws redis.clients.jedis.exceptions.JedisException
- Throws:
redis.clients.jedis.exceptions.JedisException
-
getPool
public redis.clients.util.Pool<redis.clients.jedis.Jedis> getPool()
-
startMonitor
public void startMonitor()
Description copied from interface:RedisExecutor
Start to trace Redis activity only for debug purpose.
-
stopMonitor
public void stopMonitor()
Description copied from interface:RedisExecutor
Stop tracing Redis activity.
-
-