Class JedisPoolConfig

java.lang.Object
org.apache.storm.redis.common.config.JedisPoolConfig
All Implemented Interfaces:
Serializable

public class JedisPoolConfig extends Object implements Serializable
Configuration for JedisPool.
See Also:
  • Constructor Details

    • JedisPoolConfig

      public JedisPoolConfig()
    • JedisPoolConfig

      public JedisPoolConfig(String host, int port, int timeout, String password, int database)
      Constructor.

      You can use JedisPoolConfig.Builder() for leaving some fields to apply default value.

      Parameters:
      host - hostname or IP
      port - port
      timeout - socket / connection timeout
      database - database index
      password - password, if any
  • Method Details

    • getHost

      public String getHost()
      Returns host.
      Returns:
      hostname or IP
    • getPort

      public int getPort()
      Returns port.
      Returns:
      port
    • getTimeout

      public int getTimeout()
      Returns timeout.
      Returns:
      socket / connection timeout
    • getDatabase

      public int getDatabase()
      Returns database index.
      Returns:
      database index
    • getPassword

      public String getPassword()
      Returns password.
      Returns:
      password
    • toString

      public String toString()
      Overrides:
      toString in class Object