Class TimeoutConfig<R>
java.lang.Object
dev.failsafe.PolicyConfig<R>
dev.failsafe.TimeoutConfig<R>
- Type Parameters:
R- result type
Configuration for a
Timeout.
This class is threadsafe.
- Author:
- Jonathan Halterman
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns whether the policy can interrupt an execution if the timeout is exceeded.Returns the timeout duration.Methods inherited from class PolicyConfig
getFailureListener, getSuccessListener
-
Method Details
-
getTimeout
Returns the timeout duration. -
canInterrupt
public boolean canInterrupt()Returns whether the policy can interrupt an execution if the timeout is exceeded.- See Also:
-