| 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)
jedisPool - JedisPoolpublic void beginCommit(Long someLong)
beginCommit in interface Statepublic redis.clients.jedis.Jedis getJedis()
public void returnJedis(redis.clients.jedis.Jedis jedis)
jedis - Jedis instance to return to poolCopyright © 2023 The Apache Software Foundation. All rights reserved.