Class RedisState.Factory
- java.lang.Object
-
- org.apache.storm.redis.trident.state.RedisState.Factory
-
- All Implemented Interfaces:
Serializable
,StateFactory
- Enclosing class:
- RedisState
public static class RedisState.Factory extends Object implements StateFactory
RedisState.Factory implements StateFactory for single Redis environment.- See Also:
StateFactory
, Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static redis.clients.jedis.JedisPoolConfig
DEFAULT_POOL_CONFIG
-
Constructor Summary
Constructors Constructor Description Factory(JedisPoolConfig config)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description State
makeState(Map<String,Object> conf, IMetricsContext metrics, int partitionIndex, int numPartitions)
-
-
-
Constructor Detail
-
Factory
public Factory(JedisPoolConfig config)
Constructor.- Parameters:
config
- configuration of JedisPool
-
-
Method Detail
-
makeState
public State makeState(Map<String,Object> conf, IMetricsContext metrics, int partitionIndex, int numPartitions)
- Specified by:
makeState
in interfaceStateFactory
-
-