Modifier and Type | Class and Description |
---|---|
static class |
RedisState.Factory
RedisState.Factory implements StateFactory for single Redis environment.
|
Constructor and Description |
---|
RedisState(redis.clients.jedis.JedisPool jedisPool)
Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
beginCommit(Long aLong) |
void |
commit(Long aLong) |
redis.clients.jedis.Jedis |
getJedis()
Borrows Jedis instance from pool.
|
void |
returnJedis(redis.clients.jedis.Jedis jedis)
Returns Jedis instance to pool.
|
public RedisState(redis.clients.jedis.JedisPool jedisPool)
Constructor
jedisPool
- JedisPoolpublic void beginCommit(Long aLong)
beginCommit
in interface State
public redis.clients.jedis.Jedis getJedis()
Borrows Jedis instance from pool.
Note that you should return borrowed instance to pool when you finish using instance.public void returnJedis(redis.clients.jedis.Jedis jedis)
Returns Jedis instance to pool.
jedis
- Jedis instance to return to poolCopyright © 2019 The Apache Software Foundation. All Rights Reserved.