Class JedisPoolConfig.Builder

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

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

    • Builder

      public Builder()
  • Method Details

    • setHost

      public JedisPoolConfig.Builder setHost(String host)
      Sets host.
      Parameters:
      host - host
      Returns:
      Builder itself
    • setPort

      public JedisPoolConfig.Builder setPort(int port)
      Sets port.
      Parameters:
      port - port
      Returns:
      Builder itself
    • setTimeout

      public JedisPoolConfig.Builder setTimeout(int timeout)
      Sets timeout.
      Parameters:
      timeout - timeout
      Returns:
      Builder itself
    • setDatabase

      public JedisPoolConfig.Builder setDatabase(int database)
      Sets database index.
      Parameters:
      database - database index
      Returns:
      Builder itself
    • setPassword

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

      public JedisPoolConfig build()
      Builds JedisPoolConfig.
      Returns:
      JedisPoolConfig