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.booleanReturns whether the execution is an async integration execution.booleanisPostExecuted(int policyIndex) Returns whether the PolicyExecutor corresponding to thepolicyIndexhas already post-executed.booleanReturns whether one of the publicAsyncExecutionrecord or complete methods have been called.voidsetPostExecuted(int policyIndex) Sets the PolicyExecutor corresponding to thepolicyIndexas having post-executed.Methods inherited from interface AsyncExecution
complete, isComplete, record, recordException, recordResultMethods inherited from interface ExecutionContext
getAttemptCount, getElapsedAttemptTime, getElapsedTime, getExecutionCount, getLastException, getLastResult, getLastResult, getStartTime, isCancelled, isFirstAttempt, isRetry, onCancelMethods inherited from interface 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 publicAsyncExecutionrecord or complete methods have been called. -
setPostExecuted
void setPostExecuted(int policyIndex) Sets the PolicyExecutor corresponding to thepolicyIndexas having post-executed. -
isPostExecuted
boolean isPostExecuted(int policyIndex) Returns whether the PolicyExecutor corresponding to thepolicyIndexhas already post-executed. -
copy
AsyncExecutionInternal<R> copy()Returns a new copy of the AsyncExecutionInternal.
-