Package com.launchdarkly.eventsource
Class ErrorStrategy.Result
- java.lang.Object
-
- com.launchdarkly.eventsource.ErrorStrategy.Result
-
- Enclosing class:
- ErrorStrategy
public static class ErrorStrategy.Result extends java.lang.Object
The return type ofErrorStrategy.apply(StreamException)
.
-
-
Constructor Summary
Constructors Constructor Description Result(ErrorStrategy.Action action, ErrorStrategy next)
Constructs an instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ErrorStrategy.Action
getAction()
Returns the action that EventSource should take.ErrorStrategy
getNext()
Returns the strategy instance to be used for the next retry, or null to use the same instance as last time.
-
-
-
Constructor Detail
-
Result
public Result(ErrorStrategy.Action action, ErrorStrategy next)
Constructs an instance.- Parameters:
action
- seegetAction()
next
- seegetNext()
-
-
Method Detail
-
getAction
public ErrorStrategy.Action getAction()
Returns the action that EventSource should take.- Returns:
- the action specified by the strategy
-
getNext
public ErrorStrategy 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
-
-