Module io.smallrye.faulttolerance
Class FaultToleranceOperation
java.lang.Object
io.smallrye.faulttolerance.apiimpl.basicconfig.BasicFaultToleranceOperation
io.smallrye.faulttolerance.config.FaultToleranceOperation
public class FaultToleranceOperation
extends io.smallrye.faulttolerance.apiimpl.basicconfig.BasicFaultToleranceOperation
Fault tolerance operation metadata. Used only for declarative fault tolerance.
-
Field Summary
Fields inherited from class io.smallrye.faulttolerance.apiimpl.basicconfig.BasicFaultToleranceOperation
bulkhead, circuitBreaker, description, exponentialBackoff, fibonacciBackoff, rateLimit, retry, timeout -
Constructor Summary
ConstructorsConstructorDescriptionFaultToleranceOperation(io.smallrye.faulttolerance.autoconfig.FaultToleranceMethod method) -
Method Summary
Modifier and TypeMethodDescriptionio.smallrye.faulttolerance.api.ApplyFaultToleranceio.smallrye.faulttolerance.api.ApplyGuardorg.eclipse.microprofile.faulttolerance.Asynchronousio.smallrye.faulttolerance.api.AsynchronousNonBlockingprotected List<io.smallrye.faulttolerance.autoconfig.Config> Class<?> io.smallrye.faulttolerance.api.BeforeRetryio.smallrye.common.annotation.Blockingio.smallrye.faulttolerance.api.CircuitBreakerNameio.smallrye.faulttolerance.api.CustomBackofforg.eclipse.microprofile.faulttolerance.Fallbackio.smallrye.faulttolerance.autoconfig.MethodDescriptorgetName()io.smallrye.common.annotation.NonBlockingClass<?>[]io.smallrye.faulttolerance.api.RetryWhenClass<?> booleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanvoidtoString()voidvalidate()ThrowsFaultToleranceDefinitionExceptionif validation fails.Methods inherited from class io.smallrye.faulttolerance.apiimpl.basicconfig.BasicFaultToleranceOperation
getBulkhead, getCircuitBreaker, getExponentialBackoff, getFibonacciBackoff, getRateLimit, getRetry, getTimeout, hasBulkhead, hasCircuitBreaker, hasExponentialBackoff, hasFibonacciBackoff, hasRateLimit, hasRetry, hasTimeout, isValid
-
Constructor Details
-
FaultToleranceOperation
public FaultToleranceOperation(io.smallrye.faulttolerance.autoconfig.FaultToleranceMethod method)
-
-
Method Details
-
getName
-
getBeanClass
-
getMethodDescriptor
public io.smallrye.faulttolerance.autoconfig.MethodDescriptor getMethodDescriptor() -
getParameterTypes
-
getReturnType
-
hasApplyFaultTolerance
public boolean hasApplyFaultTolerance() -
getApplyFaultTolerance
public io.smallrye.faulttolerance.api.ApplyFaultTolerance getApplyFaultTolerance() -
hasApplyGuard
public boolean hasApplyGuard() -
getApplyGuard
public io.smallrye.faulttolerance.api.ApplyGuard getApplyGuard() -
hasAsynchronous
public boolean hasAsynchronous() -
getAsynchronous
public org.eclipse.microprofile.faulttolerance.Asynchronous getAsynchronous() -
hasAsynchronousNonBlocking
public boolean hasAsynchronousNonBlocking() -
getAsynchronousNonBlocking
public io.smallrye.faulttolerance.api.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() -
hasCircuitBreakerName
public boolean hasCircuitBreakerName() -
getCircuitBreakerName
public io.smallrye.faulttolerance.api.CircuitBreakerName getCircuitBreakerName() -
hasFallback
public boolean hasFallback() -
getFallback
public org.eclipse.microprofile.faulttolerance.Fallback getFallback() -
hasCustomBackoff
public boolean hasCustomBackoff() -
getCustomBackoff
public io.smallrye.faulttolerance.api.CustomBackoff getCustomBackoff() -
hasRetryWhen
public boolean hasRetryWhen() -
getRetryWhen
public io.smallrye.faulttolerance.api.RetryWhen getRetryWhen() -
hasBeforeRetry
public boolean hasBeforeRetry() -
getBeforeRetry
public io.smallrye.faulttolerance.api.BeforeRetry getBeforeRetry() -
getFallbackMethod
-
getFallbackMethodsWithExceptionParameter
-
getBeforeRetryMethod
-
validate
public void validate()ThrowsFaultToleranceDefinitionExceptionif validation fails.- Overrides:
validatein classio.smallrye.faulttolerance.apiimpl.basicconfig.BasicFaultToleranceOperation
-
getBackoffConfigs
- Overrides:
getBackoffConfigsin classio.smallrye.faulttolerance.apiimpl.basicconfig.BasicFaultToleranceOperation
-
materialize
public void materialize()- Overrides:
materializein classio.smallrye.faulttolerance.apiimpl.basicconfig.BasicFaultToleranceOperation
-
toString
- Overrides:
toStringin classio.smallrye.faulttolerance.apiimpl.basicconfig.BasicFaultToleranceOperation
-