public final class DefaultExecutionMediator<T extends org.mule.runtime.api.meta.model.ComponentModel> extends Object implements ExecutionMediator<T>
ExecutionMediator.
If the given context implements the Interceptable, then its defined Interceptors are properly executed
as well.
It also inspects the ConfigurationStats obtained from the ConfigurationDeclaration in the context. If
the stats class implements the MutableConfigurationStats interface, then
MutableConfigurationStats.addInflightOperation() and MutableConfigurationStats.discountInflightOperation() are
guaranteed to be called, whatever the operation's outcome.
In case of operation failure, it will execute the Interceptor.onError(ExecutionContext, Throwable) method of all the
available interceptors. If the operation fails with ConnectionException, then a retry might be attempted depending on
the configured RetryPolicyTemplate. Notice that if a retry is attempted, the entire cycle of interception (before,
onSuccess/onError, after) will be fired again.
| Constructor and Description |
|---|
DefaultExecutionMediator(org.mule.runtime.api.meta.model.ExtensionModel extensionModel,
T operationModel,
ConnectionManagerAdapter connectionManager,
org.mule.runtime.api.exception.ErrorTypeRepository typeRepository) |
| Modifier and Type | Method and Description |
|---|---|
org.reactivestreams.Publisher<Object> |
execute(org.mule.runtime.extension.api.runtime.operation.ComponentExecutor<T> executor,
ExecutionContextAdapter<T> context)
Executes the operation per the specification in this classes' javadoc
|
public DefaultExecutionMediator(org.mule.runtime.api.meta.model.ExtensionModel extensionModel,
T operationModel,
ConnectionManagerAdapter connectionManager,
org.mule.runtime.api.exception.ErrorTypeRepository typeRepository)
public org.reactivestreams.Publisher<Object> execute(org.mule.runtime.extension.api.runtime.operation.ComponentExecutor<T> executor, ExecutionContextAdapter<T> context)
execute in interface ExecutionMediator<T extends org.mule.runtime.api.meta.model.ComponentModel>executor - an ComponentExecutorcontext - the ExecutionContextAdapter for the executor to useException - if the operation or a Interceptor.before(ExecutionContext) invokation failsCopyright © 2003–2024 MuleSoft, Inc.. All rights reserved.