Class FaultToleranceOperation
- java.lang.Object
-
- io.smallrye.faulttolerance.config.FaultToleranceOperation
-
public class FaultToleranceOperation extends Object
Fault tolerance operation metadata.- Author:
- Martin Kouba
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Class<?>getBeanClass()BulkheadConfiggetBulkhead()CircuitBreakerConfiggetCircuitBreaker()FallbackConfiggetFallback()MethodgetMethod()RetryConfiggetRetry()Class<?>getReturnType()TimeoutConfiggetTimeout()booleanhasBulkhead()booleanhasCircuitBreaker()booleanhasFallback()booleanhasRetry()booleanhasTimeout()booleanisAdditionalAsync()booleanisAsync()booleanisLegitimate()booleanisThreadOffloadRequired()booleanisValid()static FaultToleranceOperationof(Class<?> beanClass, Method method)static FaultToleranceOperationof(javax.enterprise.inject.spi.AnnotatedMethod<?> annotatedMethod)StringtoString()voidvalidate()ThrowsFaultToleranceDefinitionExceptionif validation fails.
-
-
-
Method Detail
-
of
public static FaultToleranceOperation of(javax.enterprise.inject.spi.AnnotatedMethod<?> annotatedMethod)
-
of
public static FaultToleranceOperation of(Class<?> beanClass, Method method)
-
isAsync
public boolean isAsync()
-
isAdditionalAsync
public boolean isAdditionalAsync()
-
isThreadOffloadRequired
public boolean isThreadOffloadRequired()
-
getReturnType
public Class<?> getReturnType()
-
hasBulkhead
public boolean hasBulkhead()
-
getBulkhead
public BulkheadConfig getBulkhead()
-
getCircuitBreaker
public CircuitBreakerConfig getCircuitBreaker()
-
hasCircuitBreaker
public boolean hasCircuitBreaker()
-
getFallback
public FallbackConfig getFallback()
-
hasFallback
public boolean hasFallback()
-
getRetry
public RetryConfig getRetry()
-
hasRetry
public boolean hasRetry()
-
getTimeout
public TimeoutConfig getTimeout()
-
hasTimeout
public boolean hasTimeout()
-
getMethod
public Method getMethod()
-
getBeanClass
public Class<?> getBeanClass()
-
isLegitimate
public boolean isLegitimate()
-
isValid
public boolean isValid()
-
validate
public void validate()
ThrowsFaultToleranceDefinitionExceptionif validation fails.
-
-