Class RedisMapState.Factory
java.lang.Object
org.apache.storm.redis.trident.state.RedisMapState.Factory
- All Implemented Interfaces:
Serializable
,StateFactory
- Enclosing class:
- RedisMapState<T>
RedisMapState.Factory provides single Redis environment version of StateFactory.
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionstatic final redis.clients.jedis.JedisPoolConfig
-
Constructor Summary
ConstructorDescriptionFactory
(JedisPoolConfig jedisPoolConfig, StateType type, Options options) Constructor. -
Method Summary
-
Field Details
-
DEFAULT_POOL_CONFIG
public static final redis.clients.jedis.JedisPoolConfig DEFAULT_POOL_CONFIG
-
-
Constructor Details
-
Factory
Constructor.- Parameters:
jedisPoolConfig
- configuration for JedisPooltype
- StateTypeoptions
- options of State
-
-
Method Details
-
makeState
public State makeState(Map<String, Object> conf, IMetricsContext metrics, int partitionIndex, int numPartitions) - Specified by:
makeState
in interfaceStateFactory
-