Package com.launchdarkly.eventsource
Class RetryDelayStrategy.Result
java.lang.Object
com.launchdarkly.eventsource.RetryDelayStrategy.Result
- Enclosing class:
- RetryDelayStrategy
The return type of
RetryDelayStrategy.apply(long).-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlongReturns the computed delay.getNext()Returns the strategy instance to be used for the next retry, or null to use the same instance as last time.
-
Constructor Details
-
Result
Constructs an instance.- Parameters:
delayMillis- the computed delay in millisecondsnext- aRetryDelayStrategyinstance 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
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
-