Class 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 Detail

      • beanClass

        public Class<?> beanClass
      • 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
      • blocking

        public io.smallrye.common.annotation.Blocking blocking
      • nonBlocking

        public io.smallrye.common.annotation.NonBlocking nonBlocking
      • annotationsPresentDirectly

        public Set<Class<? extends Annotation>> annotationsPresentDirectly
    • Constructor Detail

      • FaultToleranceMethod

        public FaultToleranceMethod()
    • Method Detail

      • isLegitimate

        public boolean isLegitimate()