Class RetryMetricBean
java.lang.Object
org.eclipse.microprofile.fault.tolerance.tck.metrics.common.RetryMetricBean
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
static class
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
failAfterDelay
(Duration delay) void
failSeveralTimes
(int timesToFail, RetryMetricBean.CallCounter counter) void
failSeveralTimesThenNonRetryable
(int timesToFail, RetryMetricBean.CallCounter counter) void
-
Constructor Details
-
RetryMetricBean
public RetryMetricBean()
-
-
Method Details
-
failSeveralTimes
@Retry(maxRetries=5) public void failSeveralTimes(int timesToFail, RetryMetricBean.CallCounter counter) -
failAfterDelay
@Retry(maxRetries=-1, maxDuration=1000L, delay=0L, jitter=0L) public void failAfterDelay(Duration delay) throws InterruptedException - Throws:
InterruptedException
-
failSeveralTimesThenNonRetryable
@Retry(maxRetries=5, abortOn=NonRetryableException.class) public void failSeveralTimesThenNonRetryable(int timesToFail, RetryMetricBean.CallCounter counter) -
maxRetriesZero
-