Modifier and Type | Class and Description |
---|---|
static class |
RedisClusterState.Factory
RedisClusterState.Factory implements StateFactory for Redis Cluster environment.
|
Constructor and Description |
---|
RedisClusterState(redis.clients.jedis.JedisCluster jedisCluster)
Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
beginCommit(Long aLong) |
void |
commit(Long aLong) |
redis.clients.jedis.JedisCluster |
getJedisCluster()
Borrows JedisCluster instance.
|
void |
returnJedisCluster(redis.clients.jedis.JedisCluster jedisCluster)
Returns JedisCluster instance to pool.
|
public RedisClusterState(redis.clients.jedis.JedisCluster jedisCluster)
Constructor
jedisCluster
- JedisClusterpublic void beginCommit(Long aLong)
beginCommit
in interface State
public redis.clients.jedis.JedisCluster getJedisCluster()
Borrows JedisCluster instance.
Note that you should return borrowed instance when you finish using instance.public void returnJedisCluster(redis.clients.jedis.JedisCluster jedisCluster)
Returns JedisCluster instance to pool.
jedisCluster
- JedisCluster instance to return to poolCopyright © 2022 The Apache Software Foundation. All Rights Reserved.