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>> io.smallrye.faulttolerance.api.ApplyFaultToleranceio.smallrye.faulttolerance.api.ApplyGuardorg.eclipse.microprofile.faulttolerance.Asynchronousio.smallrye.faulttolerance.api.AsynchronousNonBlockingClass<?> io.smallrye.faulttolerance.api.BeforeRetryio.smallrye.common.annotation.Blockingorg.eclipse.microprofile.faulttolerance.Bulkheadorg.eclipse.microprofile.faulttolerance.CircuitBreakerio.smallrye.faulttolerance.api.CircuitBreakerNameio.smallrye.faulttolerance.api.CustomBackoffio.smallrye.faulttolerance.api.ExponentialBackofforg.eclipse.microprofile.faulttolerance.Fallbackio.smallrye.faulttolerance.api.FibonacciBackoffio.smallrye.common.annotation.NonBlockingio.smallrye.faulttolerance.api.RateLimitorg.eclipse.microprofile.faulttolerance.Retryio.smallrye.faulttolerance.api.RetryWhenorg.eclipse.microprofile.faulttolerance.Timeout -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
beanClass
-
method
-
applyFaultTolerance
public io.smallrye.faulttolerance.api.ApplyFaultTolerance applyFaultTolerance -
applyGuard
public io.smallrye.faulttolerance.api.ApplyGuard applyGuard -
asynchronous
public org.eclipse.microprofile.faulttolerance.Asynchronous asynchronous -
asynchronousNonBlocking
public io.smallrye.faulttolerance.api.AsynchronousNonBlocking 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
public io.smallrye.faulttolerance.api.CircuitBreakerName circuitBreakerName -
fallback
public org.eclipse.microprofile.faulttolerance.Fallback fallback -
rateLimit
public io.smallrye.faulttolerance.api.RateLimit rateLimit -
retry
public org.eclipse.microprofile.faulttolerance.Retry retry -
timeout
public org.eclipse.microprofile.faulttolerance.Timeout timeout -
customBackoff
public io.smallrye.faulttolerance.api.CustomBackoff customBackoff -
exponentialBackoff
public io.smallrye.faulttolerance.api.ExponentialBackoff exponentialBackoff -
fibonacciBackoff
public io.smallrye.faulttolerance.api.FibonacciBackoff fibonacciBackoff -
retryWhen
public io.smallrye.faulttolerance.api.RetryWhen retryWhen -
beforeRetry
public io.smallrye.faulttolerance.api.BeforeRetry beforeRetry -
annotationsPresentDirectly
-
fallbackMethod
-
fallbackMethodsWithExceptionParameter
-
beforeRetryMethod
-
-
Constructor Details
-
FaultToleranceMethod
public FaultToleranceMethod()
-
-
Method Details
-
isLegitimate
public boolean isLegitimate()
-