Class FallbackMetricBean
java.lang.Object
org.eclipse.microprofile.fault.tolerance.tck.metrics.common.FallbackMetricBean
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enum
static class
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
doFallback
(FallbackMetricBean.Action action) void
doWork
(FallbackMetricBean.Action action) Get whether the fallback method and handler should pass or throw an exceptionvoid
Set 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.Action
PASS or FAIL
-
getFallbackAction
Get whether the fallback method and handler should pass or throw an exception- Returns:
FallbackMetricBean.Action
PASS or FAIL
-