public static class RedisState.Factory extends Object implements StateFactory
RedisState.Factory implements StateFactory for single Redis environment.
StateFactory
,
Serialized FormModifier and Type | Field and Description |
---|---|
static redis.clients.jedis.JedisPoolConfig |
DEFAULT_POOL_CONFIG |
Constructor and Description |
---|
Factory(JedisPoolConfig config)
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 config)
Constructor.
config
- configuration of JedisPoolpublic State makeState(Map<String,Object> conf, IMetricsContext metrics, int partitionIndex, int numPartitions)
makeState
in interface StateFactory
Copyright © 2022 The Apache Software Foundation. All rights reserved.