public class FallbackPolicy extends Object
Constructor and Description |
---|
FallbackPolicy(org.eclipse.microprofile.faulttolerance.Fallback fallback,
org.eclipse.microprofile.config.Config config,
javax.interceptor.InvocationContext invocationContext) |
Modifier and Type | Method and Description |
---|---|
Object |
fallback(javax.interceptor.InvocationContext invocationContext)
Performs the fallback operation defined by the @Fallback annotation.
|
public FallbackPolicy(org.eclipse.microprofile.faulttolerance.Fallback fallback, org.eclipse.microprofile.config.Config config, javax.interceptor.InvocationContext invocationContext) throws ClassNotFoundException
ClassNotFoundException
public Object fallback(javax.interceptor.InvocationContext invocationContext) throws Exception
invocationContext
- The failing invocation contextException
- If the fallback method itself fails.Copyright © 2018. All rights reserved.