Class FaultToleranceMethod
- java.lang.Object
-
- io.smallrye.faulttolerance.autoconfig.FaultToleranceMethod
-
public class FaultToleranceMethod extends Object
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,
FaultToleranceOperationis 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
Fields Modifier and Type Field Description Set<Class<? extends Annotation>>annotationsPresentDirectlyorg.eclipse.microprofile.faulttolerance.AsynchronousasynchronousClass<?>beanClassio.smallrye.common.annotation.Blockingblockingorg.eclipse.microprofile.faulttolerance.Bulkheadbulkheadorg.eclipse.microprofile.faulttolerance.CircuitBreakercircuitBreakerCircuitBreakerNamecircuitBreakerNameCustomBackoffcustomBackoffExponentialBackoffexponentialBackofforg.eclipse.microprofile.faulttolerance.FallbackfallbackFibonacciBackofffibonacciBackoffMethodDescriptormethodio.smallrye.common.annotation.NonBlockingnonBlockingorg.eclipse.microprofile.faulttolerance.Retryretryorg.eclipse.microprofile.faulttolerance.Timeouttimeout
-
Constructor Summary
Constructors Constructor Description FaultToleranceMethod()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisLegitimate()
-
-
-
Field Detail
-
beanClass
public Class<?> beanClass
-
method
public MethodDescriptor method
-
asynchronous
public org.eclipse.microprofile.faulttolerance.Asynchronous asynchronous
-
bulkhead
public org.eclipse.microprofile.faulttolerance.Bulkhead bulkhead
-
circuitBreaker
public org.eclipse.microprofile.faulttolerance.CircuitBreaker circuitBreaker
-
fallback
public org.eclipse.microprofile.faulttolerance.Fallback fallback
-
retry
public org.eclipse.microprofile.faulttolerance.Retry retry
-
timeout
public org.eclipse.microprofile.faulttolerance.Timeout timeout
-
circuitBreakerName
public CircuitBreakerName circuitBreakerName
-
customBackoff
public CustomBackoff customBackoff
-
exponentialBackoff
public ExponentialBackoff exponentialBackoff
-
fibonacciBackoff
public FibonacciBackoff fibonacciBackoff
-
blocking
public io.smallrye.common.annotation.Blocking blocking
-
nonBlocking
public io.smallrye.common.annotation.NonBlocking nonBlocking
-
annotationsPresentDirectly
public Set<Class<? extends Annotation>> annotationsPresentDirectly
-
-