Package com.launchdarkly.eventsource
Class ErrorStrategy.Result
java.lang.Object
com.launchdarkly.eventsource.ErrorStrategy.Result
- Enclosing class:
- ErrorStrategy
The return type of
ErrorStrategy.apply(StreamException).-
Constructor Summary
ConstructorsConstructorDescriptionResult(ErrorStrategy.Action action, ErrorStrategy next) Constructs an instance. -
Method Summary
Modifier and TypeMethodDescriptionReturns the action that EventSource should take.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:
action- seegetAction()next- seegetNext()
-
-
Method Details
-
getAction
Returns the action that EventSource should take.- Returns:
- the action specified by the strategy
-
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
-