Class FaultToleranceOperation
java.lang.Object
io.smallrye.faulttolerance.config.FaultToleranceOperation
Fault tolerance operation metadata.
-
Method Summary
Modifier and TypeMethodDescriptionstatic FaultToleranceOperationcreate(FaultToleranceMethod method) org.eclipse.microprofile.faulttolerance.AsynchronousClass<?> io.smallrye.common.annotation.Blockingorg.eclipse.microprofile.faulttolerance.Bulkheadorg.eclipse.microprofile.faulttolerance.CircuitBreakerorg.eclipse.microprofile.faulttolerance.FallbackgetName()io.smallrye.common.annotation.NonBlockingClass<?>[]org.eclipse.microprofile.faulttolerance.RetrygetRetry()Class<?> org.eclipse.microprofile.faulttolerance.TimeoutbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanhasRetry()booleanbooleanbooleanbooleanisValid()voidEnsures all configuration of this fault tolerance operation is loaded.toString()voidvalidate()ThrowsFaultToleranceDefinitionExceptionif validation fails.
-
Method Details
-
create
-
getBeanClass
-
getMethodDescriptor
-
getParameterTypes
-
getReturnType
-
hasApplyFaultTolerance
public boolean hasApplyFaultTolerance() -
getApplyFaultTolerance
-
hasAsynchronous
public boolean hasAsynchronous() -
getAsynchronous
public org.eclipse.microprofile.faulttolerance.Asynchronous getAsynchronous() -
hasAsynchronousNonBlocking
public boolean hasAsynchronousNonBlocking() -
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
-
hasFallback
public boolean hasFallback() -
getFallback
public org.eclipse.microprofile.faulttolerance.Fallback getFallback() -
hasRateLimit
public boolean hasRateLimit() -
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
-
hasFibonacciBackoff
public boolean hasFibonacciBackoff() -
getFibonacciBackoff
-
hasCustomBackoff
public boolean hasCustomBackoff() -
getCustomBackoff
-
hasRetryWhen
public boolean hasRetryWhen() -
getRetryWhen
-
hasBeforeRetry
public boolean hasBeforeRetry() -
getBeforeRetry
-
getFallbackMethod
-
getFallbackMethodsWithExceptionParameter
-
getBeforeRetryMethod
-
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. -
toString
-