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
public interface SyncExecutionInternal<R> extends ExecutionInternal<R>, Execution<R>
Internal execution APIs.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description 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.void
interrupt()
Interrupts the execution.boolean
isInterrupted()
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 Detail
-
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.
-
-