Class RedisCommandsContainerBuilder
- java.lang.Object
-
- org.apache.storm.redis.common.container.RedisCommandsContainerBuilder
-
public class RedisCommandsContainerBuilder extends Object
The binary version of container builder which helps abstraction of two env. - single instance or Redis Cluster.
-
-
Constructor Summary
Constructors Constructor Description RedisCommandsContainerBuilder()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static RedisCommandsInstanceContainer
build(JedisClusterConfig config)
Builds container for Redis Cluster environment.static RedisCommandsInstanceContainer
build(JedisPoolConfig config)
Builds container for single Redis environment.
-
-
-
Method Detail
-
build
public static RedisCommandsInstanceContainer build(JedisPoolConfig config)
Builds container for single Redis environment.- Parameters:
config
- configuration for JedisPool- Returns:
- container for single Redis environment
-
build
public static RedisCommandsInstanceContainer build(JedisClusterConfig config)
Builds container for Redis Cluster environment.- Parameters:
config
- configuration for JedisCluster- Returns:
- container for Redis Cluster environment
-
-