public abstract class FailoverStrategy extends InvocationStrategy
Constructor and Description |
---|
FailoverStrategy() |
Modifier and Type | Method and Description |
---|---|
protected abstract <R> R |
onFailure(java.lang.Exception error,
Function<R> f,
java.util.List<java.lang.Object> args) |
protected <R> R |
wrap(Function<R> f,
java.util.List<java.lang.Object> args)
An operation wrapping origin function.
|
protected abstract <R> R onFailure(java.lang.Exception error, Function<R> f, java.util.List<java.lang.Object> args)
protected <R> R wrap(Function<R> f, java.util.List<java.lang.Object> args)
InvocationStrategy
wrap
in class InvocationStrategy
R
- an invocation return typef
- an origin functionargs
- function arguments