protected static class RedisMapState.Factory extends Object implements StateFactory
RedisMapState.Factory provides single Redis environment version of StateFactory.
| Modifier and Type | Field and Description |
|---|---|
static redis.clients.jedis.JedisPoolConfig |
DEFAULT_POOL_CONFIG |
| Constructor and Description |
|---|
Factory(JedisPoolConfig jedisPoolConfig,
StateType type,
Options options)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
State |
makeState(Map<String,Object> conf,
IMetricsContext metrics,
int partitionIndex,
int numPartitions) |
public static final redis.clients.jedis.JedisPoolConfig DEFAULT_POOL_CONFIG
public Factory(JedisPoolConfig jedisPoolConfig, StateType type, Options options)
Constructor.
jedisPoolConfig - configuration for JedisPooltype - StateTypeoptions - options of Statepublic State makeState(Map<String,Object> conf, IMetricsContext metrics, int partitionIndex, int numPartitions)
makeState in interface StateFactoryCopyright © 2021 The Apache Software Foundation. All rights reserved.