Module io.helidon.faulttolerance
Package io.helidon.faulttolerance
Class FtSupport.FallbackMethod<T>
java.lang.Object
io.helidon.faulttolerance.FtSupport.FallbackMethod<T>
- Type Parameters:
T- service type
- All Implemented Interfaces:
Interception.ElementInterceptor,Interception.Interceptor
- Enclosing class:
FtSupport
public abstract static class FtSupport.FallbackMethod<T>
extends Object
implements Interception.ElementInterceptor
A base interceptor service implementation to support
Fallback.-
Nested Class Summary
Nested classes/interfaces inherited from interface io.helidon.service.registry.Interception.Interceptor
Interception.Interceptor.Chain<V> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract ObjectImplementation of the fallback for exceptions that are valid.<V> Vproceed(InterceptionContext ctx, Interception.Interceptor.Chain<V> chain, Object... args) Called during interception of the target V.
-
Constructor Details
-
FallbackMethod
protected FallbackMethod()Constructor with no side effects.
-
-
Method Details
-
proceed
public <V> V proceed(InterceptionContext ctx, Interception.Interceptor.Chain<V> chain, Object... args) Description copied from interface:Interception.InterceptorCalled during interception of the target V. The implementation typically should finish with the call toInterception.Interceptor.Chain.proceed(java.lang.Object[]).- Specified by:
proceedin interfaceInterception.Interceptor- Type Parameters:
V- the return value type (orVoidfor void method elements)- Parameters:
ctx- the invocation contextchain- the chain to call proceed onargs- the arguments to the call- Returns:
- the return value to the caller
-
fallback
Implementation of the fallback for exceptions that are valid.- Parameters:
service- service instancet- throwable that was thrownparams- parameters of the method- Returns:
- the expected result
- Throws:
Throwable- throwable in case the providedtshould be skipped
-