Class RedisMapState.Factory
- java.lang.Object
-
- org.apache.storm.redis.trident.state.RedisMapState.Factory
-
- All Implemented Interfaces:
Serializable,StateFactory
- Enclosing class:
- RedisMapState<T>
protected static class RedisMapState.Factory extends Object implements StateFactory
RedisMapState.Factory provides single Redis environment version of StateFactory.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static redis.clients.jedis.JedisPoolConfigDEFAULT_POOL_CONFIG
-
Constructor Summary
Constructors Constructor Description Factory(JedisPoolConfig jedisPoolConfig, StateType type, Options options)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StatemakeState(Map<String,Object> conf, IMetricsContext metrics, int partitionIndex, int numPartitions)
-
-
-
Constructor Detail
-
Factory
public Factory(JedisPoolConfig jedisPoolConfig, StateType type, Options options)
Constructor.- Parameters:
jedisPoolConfig- configuration for JedisPooltype- StateTypeoptions- options of State
-
-
Method Detail
-
makeState
public State makeState(Map<String,Object> conf, IMetricsContext metrics, int partitionIndex, int numPartitions)
- Specified by:
makeStatein interfaceStateFactory
-
-