Interface AbstractRequestHandlerAdvice.ExecutionCallback
- Enclosing class:
AbstractRequestHandlerAdvice
protected static interface AbstractRequestHandlerAdvice.ExecutionCallback
Called by subclasses in
AbstractRequestHandlerAdvice.doInvoke(org.springframework.integration.handler.advice.AbstractRequestHandlerAdvice.ExecutionCallback, java.lang.Object, org.springframework.messaging.Message<?>) to proceed() the invocation. Callers
unwrap AbstractRequestHandlerAdvice.ThrowableHolderExceptions and use
the cause for evaluation and re-throwing purposes.
See AbstractRequestHandlerAdvice.unwrapExceptionIfNecessary(Exception).- Since:
- 2.2
- Author:
- Gary Russell, Artem Bilan, Ngoc Nhan
-
Method Summary
Modifier and TypeMethodDescription@Nullable ObjectCall this when it is necessary to clone the invocation before calling proceed() - such as when the invocation might be called multiple times - for example, in a retry advice.@Nullable Objectexecute()Call this for a normal invocation.proceed().
-
Method Details
-
execute
@Nullable Object execute()Call this for a normal invocation.proceed().- Returns:
- The result of the execution.
-
cloneAndExecute
@Nullable Object cloneAndExecute()Call this when it is necessary to clone the invocation before calling proceed() - such as when the invocation might be called multiple times - for example, in a retry advice.- Returns:
- The result of the execution.
-