Class FaultToleranceOperation
- java.lang.Object
-
- io.smallrye.faulttolerance.config.FaultToleranceOperation
-
public class FaultToleranceOperation extends Object
Fault tolerance operation metadata.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static FaultToleranceOperationcreate(FaultToleranceMethod method)ApplyFaultTolerancegetApplyFaultTolerance()org.eclipse.microprofile.faulttolerance.AsynchronousgetAsynchronous()AsynchronousNonBlockinggetAsynchronousNonBlocking()Class<?>getBeanClass()io.smallrye.common.annotation.BlockinggetBlocking()org.eclipse.microprofile.faulttolerance.BulkheadgetBulkhead()org.eclipse.microprofile.faulttolerance.CircuitBreakergetCircuitBreaker()CircuitBreakerNamegetCircuitBreakerName()CustomBackoffgetCustomBackoff()ExponentialBackoffgetExponentialBackoff()org.eclipse.microprofile.faulttolerance.FallbackgetFallback()FibonacciBackoffgetFibonacciBackoff()MethodDescriptorgetMethodDescriptor()StringgetName()io.smallrye.common.annotation.NonBlockinggetNonBlocking()Class<?>[]getParameterTypes()RateLimitgetRateLimit()org.eclipse.microprofile.faulttolerance.RetrygetRetry()Class<?>getReturnType()org.eclipse.microprofile.faulttolerance.TimeoutgetTimeout()booleanhasApplyFaultTolerance()booleanhasAsynchronous()booleanhasAsynchronousNonBlocking()booleanhasBlocking()booleanhasBulkhead()booleanhasCircuitBreaker()booleanhasCircuitBreakerName()booleanhasCustomBackoff()booleanhasExponentialBackoff()booleanhasFallback()booleanhasFibonacciBackoff()booleanhasNonBlocking()booleanhasRateLimit()booleanhasRetry()booleanhasTimeout()booleanisThreadOffloadRequired()booleanisValid()voidmaterialize()Ensures all configuration of this fault tolerance operation is loaded.StringtoString()voidvalidate()ThrowsFaultToleranceDefinitionExceptionif validation fails.
-
-
-
Method Detail
-
create
public static FaultToleranceOperation create(FaultToleranceMethod method)
-
getBeanClass
public Class<?> getBeanClass()
-
getMethodDescriptor
public MethodDescriptor getMethodDescriptor()
-
getParameterTypes
public Class<?>[] getParameterTypes()
-
getReturnType
public Class<?> getReturnType()
-
hasApplyFaultTolerance
public boolean hasApplyFaultTolerance()
-
getApplyFaultTolerance
public ApplyFaultTolerance getApplyFaultTolerance()
-
hasAsynchronous
public boolean hasAsynchronous()
-
getAsynchronous
public org.eclipse.microprofile.faulttolerance.Asynchronous getAsynchronous()
-
hasAsynchronousNonBlocking
public boolean hasAsynchronousNonBlocking()
-
getAsynchronousNonBlocking
public AsynchronousNonBlocking getAsynchronousNonBlocking()
-
hasBlocking
public boolean hasBlocking()
-
getBlocking
public io.smallrye.common.annotation.Blocking getBlocking()
-
hasNonBlocking
public boolean hasNonBlocking()
-
getNonBlocking
public io.smallrye.common.annotation.NonBlocking getNonBlocking()
-
isThreadOffloadRequired
public boolean isThreadOffloadRequired()
-
hasBulkhead
public boolean hasBulkhead()
-
getBulkhead
public org.eclipse.microprofile.faulttolerance.Bulkhead getBulkhead()
-
hasCircuitBreaker
public boolean hasCircuitBreaker()
-
getCircuitBreaker
public org.eclipse.microprofile.faulttolerance.CircuitBreaker getCircuitBreaker()
-
hasCircuitBreakerName
public boolean hasCircuitBreakerName()
-
getCircuitBreakerName
public CircuitBreakerName getCircuitBreakerName()
-
hasFallback
public boolean hasFallback()
-
getFallback
public org.eclipse.microprofile.faulttolerance.Fallback getFallback()
-
hasRateLimit
public boolean hasRateLimit()
-
getRateLimit
public RateLimit getRateLimit()
-
hasRetry
public boolean hasRetry()
-
getRetry
public org.eclipse.microprofile.faulttolerance.Retry getRetry()
-
hasTimeout
public boolean hasTimeout()
-
getTimeout
public org.eclipse.microprofile.faulttolerance.Timeout getTimeout()
-
hasExponentialBackoff
public boolean hasExponentialBackoff()
-
getExponentialBackoff
public ExponentialBackoff getExponentialBackoff()
-
hasFibonacciBackoff
public boolean hasFibonacciBackoff()
-
getFibonacciBackoff
public FibonacciBackoff getFibonacciBackoff()
-
hasCustomBackoff
public boolean hasCustomBackoff()
-
getCustomBackoff
public CustomBackoff getCustomBackoff()
-
getName
public String getName()
-
isValid
public boolean isValid()
-
validate
public void validate()
ThrowsFaultToleranceDefinitionExceptionif validation fails.
-
materialize
public void materialize()
Ensures all configuration of this fault tolerance operation is loaded. Subsequent method invocations on this instance are guaranteed to not touch MP Config.
-
-