Class JedisClusterConfig.Builder

java.lang.Object
org.apache.storm.redis.common.config.JedisClusterConfig.Builder
Enclosing class:
JedisClusterConfig

public static class JedisClusterConfig.Builder extends Object
Builder for initializing JedisClusterConfig.
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • setNodes

      Sets list of node.
      Parameters:
      nodes - list of node
      Returns:
      Builder itself
    • setTimeout

      public JedisClusterConfig.Builder setTimeout(int timeout)
      Sets socket / connection timeout.
      Parameters:
      timeout - socket / connection timeout
      Returns:
      Builder itself
    • setMaxRedirections

      public JedisClusterConfig.Builder setMaxRedirections(int maxRedirections)
      Sets limit of redirection.
      Parameters:
      maxRedirections - limit of redirection
      Returns:
      Builder itself
    • setPassword

      public JedisClusterConfig.Builder setPassword(String password)
      Sets password.
      Parameters:
      password - password, if any
      Returns:
      Builder itself
    • build

      public JedisClusterConfig build()
      Builds JedisClusterConfig.
      Returns:
      JedisClusterConfig