Class FaultToleranceMethod
java.lang.Object
io.smallrye.faulttolerance.autoconfig.FaultToleranceMethod
Created in the CDI extension to capture effective annotations for each
method that needs fault tolerance. By "effective annotation", we mean
an annotation that applies to the method, even if it perhaps isn't
declared directly on the method. The annotation may be declared on
the class that declares the method, or even on a superclass (because
Fault Tolerance annotations are generally
@Inherited).
Later, FaultToleranceOperation is created from this class to hold
all data the fault tolerance interceptor needs to know about the method.
The annotation instances are collected based on what the CDI extension knows, so they don't necessarily correspond to what's in the class bytecode (because CDI extensions may add, remove or modify annotations).
-
Field Summary
FieldsModifier and TypeFieldDescriptionSet<Class<? extends Annotation>> org.eclipse.microprofile.faulttolerance.AsynchronousClass<?> io.smallrye.common.annotation.Blockingorg.eclipse.microprofile.faulttolerance.Bulkheadorg.eclipse.microprofile.faulttolerance.CircuitBreakerorg.eclipse.microprofile.faulttolerance.Fallbackio.smallrye.common.annotation.NonBlockingorg.eclipse.microprofile.faulttolerance.Retryorg.eclipse.microprofile.faulttolerance.Timeout -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
beanClass
-
method
-
applyFaultTolerance
-
applyGuard
-
asynchronous
public org.eclipse.microprofile.faulttolerance.Asynchronous asynchronous -
asynchronousNonBlocking
-
blocking
public io.smallrye.common.annotation.Blocking blocking -
nonBlocking
public io.smallrye.common.annotation.NonBlocking nonBlocking -
bulkhead
public org.eclipse.microprofile.faulttolerance.Bulkhead bulkhead -
circuitBreaker
public org.eclipse.microprofile.faulttolerance.CircuitBreaker circuitBreaker -
circuitBreakerName
-
fallback
public org.eclipse.microprofile.faulttolerance.Fallback fallback -
rateLimit
-
retry
public org.eclipse.microprofile.faulttolerance.Retry retry -
timeout
public org.eclipse.microprofile.faulttolerance.Timeout timeout -
customBackoff
-
exponentialBackoff
-
fibonacciBackoff
-
retryWhen
-
beforeRetry
-
annotationsPresentDirectly
-
fallbackMethod
-
fallbackMethodsWithExceptionParameter
-
beforeRetryMethod
-
-
Constructor Details
-
FaultToleranceMethod
public FaultToleranceMethod()
-
-
Method Details
-
isLegitimate
public boolean isLegitimate()
-