Class RetryDelayStrategy.Result

java.lang.Object
com.launchdarkly.eventsource.RetryDelayStrategy.Result
Enclosing class:
RetryDelayStrategy

public static class RetryDelayStrategy.Result extends Object
The return type of RetryDelayStrategy.apply(long).
  • Constructor Details

    • Result

      public Result(long delayMillis, RetryDelayStrategy next)
      Constructs an instance.
      Parameters:
      delayMillis - the computed delay in milliseconds
      next - a RetryDelayStrategy instance to be used for the next retry; null means to use the same instance as last time
  • Method Details

    • getDelayMillis

      public long getDelayMillis()
      Returns the computed delay.
      Returns:
      the delay in milliseconds
    • getNext

      public RetryDelayStrategy getNext()
      Returns the strategy instance to be used for the next retry, or null to use the same instance as last time.
      Returns:
      a new instance or null