Package dev.failsafe.spi
Interface SyncExecutionInternal<R>
- Type Parameters:
R
- result type
- All Superinterfaces:
Execution<R>
,ExecutionContext<R>
,ExecutionInternal<R>
- All Known Implementing Classes:
SyncExecutionImpl
Internal execution APIs.
-
Method Summary
Modifier and TypeMethodDescriptioncopy()
Returns a new copy of the SyncExecutionInternal if it is not standalone, else returnsthis
since standalone executions are referenced externally and cannot be replaced.void
Interrupts the execution.boolean
Returns whether the execution is currently interrupted.void
setInterruptable
(boolean interruptable) Sets whether the execution is currentlyinterruptable
.Methods inherited from interface dev.failsafe.Execution
complete, getDelay, isComplete, record, recordException, recordResult
Methods inherited from interface dev.failsafe.ExecutionContext
getAttemptCount, getElapsedAttemptTime, getElapsedTime, getExecutionCount, getLastException, getLastResult, getLastResult, getStartTime, isCancelled, isFirstAttempt, isRetry, onCancel
Methods inherited from interface dev.failsafe.spi.ExecutionInternal
cancel, cancel, getLatest, getLock, getResult, isCancelled, isPreExecuted, preExecute, record, recordAttempt
-
Method Details
-
isInterrupted
boolean isInterrupted()Returns whether the execution is currently interrupted. -
setInterruptable
void setInterruptable(boolean interruptable) Sets whether the execution is currentlyinterruptable
. -
interrupt
void interrupt()Interrupts the execution. -
copy
SyncExecutionInternal<R> copy()Returns a new copy of the SyncExecutionInternal if it is not standalone, else returnsthis
since standalone executions are referenced externally and cannot be replaced.
-