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 returnsthissince standalone executions are referenced externally and cannot be replaced.voidInterrupts the execution.booleanReturns whether the execution is currently interrupted.voidsetInterruptable(boolean interruptable) Sets whether the execution is currentlyinterruptable.Methods inherited from interface dev.failsafe.Execution
complete, getDelay, isComplete, record, recordException, recordResultMethods inherited from interface dev.failsafe.ExecutionContext
getAttemptCount, getElapsedAttemptTime, getElapsedTime, getExecutionCount, getLastException, getLastResult, getLastResult, getStartTime, isCancelled, isFirstAttempt, isRetry, onCancelMethods 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 returnsthissince standalone executions are referenced externally and cannot be replaced.
-