Class FallbackMetricBean
java.lang.Object
org.eclipse.microprofile.fault.tolerance.tck.metrics.common.FallbackMetricBean
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumstatic class -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddoFallback(FallbackMetricBean.Action action) voiddoWork(FallbackMetricBean.Action action) Get whether the fallback method and handler should pass or throw an exceptionvoidSet whether the fallback method and handler should pass or throw an exception
-
Constructor Details
-
FallbackMetricBean
public FallbackMetricBean()
-
-
Method Details
-
doWork
@Fallback(fallbackMethod="doFallback", skipOn=NonFallbackException.class) public void doWork(FallbackMetricBean.Action action) -
doFallback
-
doWorkWithHandler
@Fallback(value=FallbackMetricHandler.class, applyOn=TestException.class) public Void doWorkWithHandler(FallbackMetricBean.Action action) -
setFallbackAction
Set whether the fallback method and handler should pass or throw an exception- Parameters:
action- set toFallbackMetricBean.ActionPASS or FAIL
-
getFallbackAction
Get whether the fallback method and handler should pass or throw an exception- Returns:
FallbackMetricBean.ActionPASS or FAIL
-