Package org.apache.storm.redis.common.container

## 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.

- - ### Constructor Summary

    Constructors
    Constructor | Description
    --- | ---
    `JedisCommandsContainerBuilder()` |

  - ### Method Summary

    All Methods Static Methods Concrete Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `static JedisCommandsContainer` | `build​(JedisClusterConfig config)` | Builds container for Redis Cluster environment.
    `static JedisCommandsContainer` | `build​(JedisPoolConfig config)` | Builds container for single Redis environment.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### JedisCommandsContainerBuilder

          public JedisCommandsContainerBuilder()

  - ### Method Detail

    - #### build

          public static JedisCommandsContainer build​(JedisPoolConfig config)

      Builds container for single Redis environment.
      Parameters:
        `config` - configuration for JedisPool
      Returns:
        container for single Redis environment

    - #### build

          public static JedisCommandsContainer build​(JedisClusterConfig config)

      Builds container for Redis Cluster environment.
      Parameters:
        `config` - configuration for JedisCluster
      Returns:
        container for Redis Cluster environment