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 static FaultToleranceOperation
create(FaultToleranceMethod method)
org.eclipse.microprofile.faulttolerance.Bulkhead
getBulkhead()
org.eclipse.microprofile.faulttolerance.CircuitBreaker
getCircuitBreaker()
CircuitBreakerName
getCircuitBreakerName()
CustomBackoff
getCustomBackoff()
ExponentialBackoff
getExponentialBackoff()
org.eclipse.microprofile.faulttolerance.Fallback
getFallback()
FibonacciBackoff
getFibonacciBackoff()
String
getName()
org.eclipse.microprofile.faulttolerance.Retry
getRetry()
Class<?>
getReturnType()
org.eclipse.microprofile.faulttolerance.Timeout
getTimeout()
boolean
hasAsynchronous()
boolean
hasBlocking()
boolean
hasBulkhead()
boolean
hasCircuitBreaker()
boolean
hasCircuitBreakerName()
boolean
hasCustomBackoff()
boolean
hasExponentialBackoff()
boolean
hasFallback()
boolean
hasFibonacciBackoff()
boolean
hasNonBlocking()
boolean
hasRetry()
boolean
hasTimeout()
boolean
isThreadOffloadRequired()
boolean
isValid()
String
toString()
void
validate()
ThrowsFaultToleranceDefinitionException
if validation fails.
-
-
-
Method Detail
-
create
public static FaultToleranceOperation create(FaultToleranceMethod method)
-
getReturnType
public Class<?> getReturnType()
-
hasAsynchronous
public boolean hasAsynchronous()
-
hasBlocking
public boolean hasBlocking()
-
hasNonBlocking
public boolean hasNonBlocking()
-
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()
-
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()
ThrowsFaultToleranceDefinitionException
if validation fails.
-
-