Class RedisClusterState.Factory
java.lang.Object
org.apache.storm.redis.trident.state.RedisClusterState.Factory
- All Implemented Interfaces:
Serializable
,StateFactory
- Enclosing class:
- RedisClusterState
RedisClusterState.Factory implements StateFactory for Redis Cluster environment.
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionstatic final org.apache.commons.pool2.impl.GenericObjectPoolConfig<redis.clients.jedis.Connection>
-
Constructor Summary
-
Method Summary
-
Field Details
-
DEFAULT_POOL_CONFIG
public static final org.apache.commons.pool2.impl.GenericObjectPoolConfig<redis.clients.jedis.Connection> DEFAULT_POOL_CONFIG
-
-
Constructor Details
-
Factory
Constructor.- Parameters:
config
- configuration of JedisCluster
-
-
Method Details
-
makeState
public State makeState(Map<String, Object> conf, IMetricsContext metrics, int partitionIndex, int numPartitions) - Specified by:
makeState
in interfaceStateFactory
-