@ApplicationScoped public class FallbackMetricBean extends Object
Modifier and Type | Class and Description |
---|---|
static class |
FallbackMetricBean.Action |
static class |
FallbackMetricBean.NonFallbackException |
Constructor and Description |
---|
FallbackMetricBean() |
Modifier and Type | Method and Description |
---|---|
void |
doFallback(FallbackMetricBean.Action action) |
void |
doWork(FallbackMetricBean.Action action) |
Void |
doWorkWithHandler(FallbackMetricBean.Action action) |
FallbackMetricBean.Action |
getFallbackAction()
Get whether the fallback method and handler should pass or throw an exception
|
void |
setFallbackAction(FallbackMetricBean.Action action)
Set whether the fallback method and handler should pass or throw an exception
|
@Fallback(fallbackMethod="doFallback", skipOn=FallbackMetricBean.NonFallbackException.class) public void doWork(FallbackMetricBean.Action action)
public void doFallback(FallbackMetricBean.Action action)
@Fallback(value=FallbackMetricHandler.class, applyOn=TestException.class) public Void doWorkWithHandler(FallbackMetricBean.Action action)
public void setFallbackAction(FallbackMetricBean.Action action)
action
- set to FallbackMetricBean.Action
PASS or FAILpublic FallbackMetricBean.Action getFallbackAction()
FallbackMetricBean.Action
PASS or FAILCopyright © 2020 Eclipse Foundation. All rights reserved.