Class JedisCommandsContainerBuilder

java.lang.Object
org.apache.storm.redis.common.container.JedisCommandsContainerBuilder

public class JedisCommandsContainerBuilder extends Object
Container Builder which helps abstraction of two env. - single instance or Redis Cluster.
  • Field Details

    • DEFAULT_POOL_CONFIG

      public static final redis.clients.jedis.JedisPoolConfig DEFAULT_POOL_CONFIG
  • Constructor Details

    • JedisCommandsContainerBuilder

      public JedisCommandsContainerBuilder()
  • Method Details

    • build

      public static JedisCommandsInstanceContainer build(JedisPoolConfig config)
      Builds container for single Redis environment.
      Parameters:
      config - configuration for JedisPool
      Returns:
      container for single Redis environment
    • build

      public static JedisCommandsInstanceContainer build(JedisClusterConfig config)
      Builds container for Redis Cluster environment.
      Parameters:
      config - configuration for JedisCluster
      Returns:
      container for Redis Cluster environment