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 someLong) |
void |
commit(Long someLong) |
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 someLong)
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.