Package dev.failsafe.spi
Interface AsyncExecutionInternal<R>
- Type Parameters:
R
- result type
- All Superinterfaces:
AsyncExecution<R>
,ExecutionContext<R>
,ExecutionInternal<R>
- All Known Implementing Classes:
AsyncExecutionImpl
Internal async execution APIs.
-
Method Summary
Modifier and TypeMethodDescriptioncopy()
Returns a new copy of the AsyncExecutionInternal.boolean
Returns whether the execution is an async integration execution.boolean
isPostExecuted
(int policyIndex) Returns whether the PolicyExecutor corresponding to thepolicyIndex
has already post-executed.boolean
Returns whether one of the publicAsyncExecution
record or complete methods have been called.void
setPostExecuted
(int policyIndex) Sets the PolicyExecutor corresponding to thepolicyIndex
as having post-executed.Methods inherited from interface dev.failsafe.AsyncExecution
complete, 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
-
isAsyncExecution
boolean isAsyncExecution()Returns whether the execution is an async integration execution. -
isRecorded
boolean isRecorded()Returns whether one of the publicAsyncExecution
record or complete methods have been called. -
setPostExecuted
void setPostExecuted(int policyIndex) Sets the PolicyExecutor corresponding to thepolicyIndex
as having post-executed. -
isPostExecuted
boolean isPostExecuted(int policyIndex) Returns whether the PolicyExecutor corresponding to thepolicyIndex
has already post-executed. -
copy
AsyncExecutionInternal<R> copy()Returns a new copy of the AsyncExecutionInternal.
-