public static class RedisClusterState.Factory extends Object implements StateFactory
RedisClusterState.Factory implements StateFactory for Redis Cluster environment.
StateFactory
,
Serialized FormModifier and Type | Field and Description |
---|---|
static redis.clients.jedis.JedisPoolConfig |
DEFAULT_POOL_CONFIG |
Constructor and Description |
---|
Factory(JedisClusterConfig config)
Constructor
|
Modifier and Type | Method and Description |
---|---|
State |
makeState(Map conf,
IMetricsContext metrics,
int partitionIndex,
int numPartitions) |
public static final redis.clients.jedis.JedisPoolConfig DEFAULT_POOL_CONFIG
public Factory(JedisClusterConfig config)
Constructor
config
- configuration of JedisClusterpublic State makeState(Map conf, IMetricsContext metrics, int partitionIndex, int numPartitions)
makeState
in interface StateFactory
Copyright © 2019 The Apache Software Foundation. All Rights Reserved.