Class Retry.DelayingRetryPolicy.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • calls

        public Retry.DelayingRetryPolicy.Builder calls​(int calls)
        Total number of calls (first + retries).
        Parameters:
        calls - how many times to call the method
        Returns:
        updated builder instance
      • delayFactor

        public Retry.DelayingRetryPolicy.Builder delayFactor​(double delayFactor)
        A delay multiplication factor.
        Parameters:
        delayFactor - a delay multiplication factor
        Returns:
        updated builder instance
      • config

        public Retry.DelayingRetryPolicy.Builder config​(Config config)

        Load all properties for this circuit breaker from configuration.

        Configuration
        key default value description
        calls 3 Number of calls
        delay 200 millis Delay to wait between retries
        delay-factor 2 A delay multiplication factor
        Parameters:
        config - the config node to use
        Returns:
        updated builder instance