Class JedisPoolConfig.Builder

  • Enclosing class:
    JedisPoolConfig

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

      • Builder

        public Builder()
    • Method Detail

      • 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