Class JedisCommandsContainerBuilder
java.lang.Object
org.apache.storm.redis.common.container.JedisCommandsContainerBuilder
Container Builder which helps abstraction of two env. - single instance or Redis Cluster.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic JedisCommandsContainer
build
(JedisClusterConfig config) Builds container for Redis Cluster environment.static JedisCommandsContainer
build
(JedisPoolConfig config) Builds container for single Redis environment.
-
Constructor Details
-
JedisCommandsContainerBuilder
public JedisCommandsContainerBuilder()
-
-
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
-