public final class DefaultExecutionMediator<M extends org.mule.runtime.api.meta.model.ComponentModel> extends Object implements ExecutionMediator<M>
ExecutionMediator.
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/interceptError, after) will be fired again.
| Modifier and Type | Class and Description |
|---|---|
static interface |
DefaultExecutionMediator.ResultTransformer |
| Constructor and Description |
|---|
DefaultExecutionMediator(org.mule.runtime.api.meta.model.ExtensionModel extensionModel,
M operationModel,
InterceptorChain interceptorChain,
org.mule.runtime.api.exception.ErrorTypeRepository typeRepository,
ClassLoader executionClassLoader,
DefaultExecutionMediator.ResultTransformer resultTransformer,
org.mule.runtime.api.profiling.ProfilingDataProducer<org.mule.runtime.api.profiling.type.context.ComponentThreadingProfilingEventContext,CoreEvent> threadReleaseDataProducer,
boolean suppressErrors) |
| Modifier and Type | Method and Description |
|---|---|
void |
execute(org.mule.runtime.extension.api.runtime.operation.CompletableComponentExecutor<M> executor,
ExecutionContextAdapter<M> context,
org.mule.runtime.extension.api.runtime.operation.CompletableComponentExecutor.ExecutorCallback callback)
Executes the operation per the specification in these classes javadoc
|
public DefaultExecutionMediator(org.mule.runtime.api.meta.model.ExtensionModel extensionModel,
M operationModel,
InterceptorChain interceptorChain,
org.mule.runtime.api.exception.ErrorTypeRepository typeRepository,
ClassLoader executionClassLoader,
DefaultExecutionMediator.ResultTransformer resultTransformer,
org.mule.runtime.api.profiling.ProfilingDataProducer<org.mule.runtime.api.profiling.type.context.ComponentThreadingProfilingEventContext,CoreEvent> threadReleaseDataProducer,
boolean suppressErrors)
public void execute(org.mule.runtime.extension.api.runtime.operation.CompletableComponentExecutor<M> executor, ExecutionContextAdapter<M> context, org.mule.runtime.extension.api.runtime.operation.CompletableComponentExecutor.ExecutorCallback callback)
execute in interface ExecutionMediator<M extends org.mule.runtime.api.meta.model.ComponentModel>executor - an CompletableComponentExecutorcontext - the ExecutionContextAdapter for the executor to useException - if the operation or a Interceptor.before(ExecutionContext) invocation failsCopyright © 2003–2025 MuleSoft, Inc.. All rights reserved.