| Package | Description |
|---|---|
| net.jodah.failsafe |
Core Failsafe APIs for performing failsafe executions.
|
| Modifier and Type | Method and Description |
|---|---|
Timeout |
TimeoutExceededException.getTimeout()
Returns the
Timeout that caused the exception. |
static <R> Timeout<R> |
Timeout.of(Duration timeout)
|
Timeout<R> |
Timeout.withCancel(boolean mayInterruptIfRunning)
Deprecated.
Tasks are cancelled by default when a Timeout is exceeded. Use
withInterrupt(boolean)
interrupt cancelled tasks when a Timeout is exceeded. |
Timeout<R> |
Timeout.withInterrupt(boolean mayInterruptIfRunning)
When
mayInterruptIfRunning is true, configures the policy to interrupt an execution in addition to
cancelling it when the timeout is exceeded. |
| Constructor and Description |
|---|
TimeoutExceededException(Timeout timeout) |
Copyright © 2021. All rights reserved.