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 someLong) |
void |
commit(Long someLong) |
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 someLong)
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 © 2019 The Apache Software Foundation. All rights reserved.