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, 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 Details

    • beanClass

      public Class<?> beanClass
    • method

      public MethodDescriptor method
    • applyFaultTolerance

      public ApplyFaultTolerance applyFaultTolerance
    • applyGuard

      public ApplyGuard applyGuard
    • asynchronous

      public org.eclipse.microprofile.faulttolerance.Asynchronous asynchronous
    • asynchronousNonBlocking

      public 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 CircuitBreakerName circuitBreakerName
    • fallback

      public org.eclipse.microprofile.faulttolerance.Fallback fallback
    • rateLimit

      public RateLimit rateLimit
    • retry

      public org.eclipse.microprofile.faulttolerance.Retry retry
    • timeout

      public org.eclipse.microprofile.faulttolerance.Timeout timeout
    • customBackoff

      public CustomBackoff customBackoff
    • exponentialBackoff

      public ExponentialBackoff exponentialBackoff
    • fibonacciBackoff

      public FibonacciBackoff fibonacciBackoff
    • retryWhen

      public RetryWhen retryWhen
    • beforeRetry

      public BeforeRetry beforeRetry
    • annotationsPresentDirectly

      public Set<Class<? extends Annotation>> annotationsPresentDirectly
    • fallbackMethod

      public MethodDescriptor fallbackMethod
    • fallbackMethodsWithExceptionParameter

      public List<MethodDescriptor> fallbackMethodsWithExceptionParameter
    • beforeRetryMethod

      public MethodDescriptor beforeRetryMethod
  • Constructor Details

    • FaultToleranceMethod

      public FaultToleranceMethod()
  • Method Details

    • isLegitimate

      public boolean isLegitimate()