Class JedisPoolConfig

    • Constructor Detail

      • 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 Detail

      • 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