Class JedisClusterConfig.Builder

  • Enclosing class:
    JedisClusterConfig

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

      • Builder

        public Builder()
    • Method Detail

      • 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