Class BackoffStrategy.BackoffStrategyBuilder

  • Enclosing class:
    BackoffStrategy

    public static class BackoffStrategy.BackoffStrategyBuilder
    extends java.lang.Object
    • Method Detail

      • numOfRetries

        public BackoffStrategy.BackoffStrategyBuilder numOfRetries​(@NonNull
                                                                   @NonNull java.lang.Integer numOfRetries)
        Number of retry attempts that the client should perform when disconnected from the server, where the time between retries increases. Once the retries have reached the maximum value, the time between retries will remain constant until a reconnect attempt is successful.
        Returns:
        this.
      • factor

        public BackoffStrategy.BackoffStrategyBuilder factor​(@NonNull
                                                             @NonNull java.lang.Integer factor)
        The multiplier that will be applied to the waiting time between each retry. This value is specified in milliseconds.
        Returns:
        this.
      • exponentBase

        public BackoffStrategy.BackoffStrategyBuilder exponentBase​(@NonNull
                                                                   @NonNull java.lang.Integer exponentBase)
        The exponent base configured for the strategy.
        Returns:
        this.
      • jitterPercent

        public BackoffStrategy.BackoffStrategyBuilder jitterPercent​(java.lang.Integer jitterPercent)
        The Jitter percent on the calculated duration. If not set, a default value will be used.
        Returns:
        this.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object