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
public interface AsyncExecutionInternal<R> extends ExecutionInternal<R>, AsyncExecution<R>
Internal async execution APIs.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description AsyncExecutionInternal<R>
copy()
Returns a new copy of the AsyncExecutionInternal.boolean
isAsyncExecution()
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
isRecorded()
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 Detail
-
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.
-
-