类 FlinkJedisPoolConfig.Builder

    • 构造器详细资料

      • Builder

        public Builder()
    • 方法详细资料

      • setMaxTotal

        public FlinkJedisPoolConfig.Builder setMaxTotal​(int maxTotal)
        Sets value for the maxTotal configuration attribute for pools to be created with this configuration instance.
        参数:
        maxTotal - maxTotal the maximum number of objects that can be allocated by the pool, default value is 8
        返回:
        Builder itself
      • setMaxIdle

        public FlinkJedisPoolConfig.Builder setMaxIdle​(int maxIdle)
        Sets value for the maxIdle configuration attribute for pools to be created with this configuration instance.
        参数:
        maxIdle - the cap on the number of "idle" instances in the pool, default value is 8
        返回:
        Builder itself
      • setMinIdle

        public FlinkJedisPoolConfig.Builder setMinIdle​(int minIdle)
        Sets value for the minIdle configuration attribute for pools to be created with this configuration instance.
        参数:
        minIdle - the minimum number of idle objects to maintain in the pool, default value is 0
        返回:
        Builder itself
      • setPort

        public FlinkJedisPoolConfig.Builder setPort​(int port)
        Sets port.
        参数:
        port - port, default value is 6379
        返回:
        Builder itself
      • setTimeout

        public FlinkJedisPoolConfig.Builder setTimeout​(int timeout)
        Sets timeout.
        参数:
        timeout - timeout, default value is 2000
        返回:
        Builder itself
      • setDatabase

        public FlinkJedisPoolConfig.Builder setDatabase​(int database)
        Sets database index.
        参数:
        database - database index, default value is 0
        返回:
        Builder itself