Class RedisCommandsContainerBuilder
java.lang.Object
org.apache.storm.redis.common.container.RedisCommandsContainerBuilder
The binary version of container builder which helps abstraction of two env. - single instance or Redis Cluster.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final redis.clients.jedis.JedisPoolConfig
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild
(JedisClusterConfig config) Builds container for Redis Cluster environment.build
(JedisPoolConfig config) Builds container for single Redis environment.
-
Field Details
-
DEFAULT_POOL_CONFIG
public static final redis.clients.jedis.JedisPoolConfig DEFAULT_POOL_CONFIG
-
-
Constructor Details
-
RedisCommandsContainerBuilder
public RedisCommandsContainerBuilder()
-
-
Method Details
-
build
Builds container for single Redis environment.- Parameters:
config
- configuration for JedisPool- Returns:
- container for single Redis environment
-
build
Builds container for Redis Cluster environment.- Parameters:
config
- configuration for JedisCluster- Returns:
- container for Redis Cluster environment
-