Interface CompletableComponentExecutor<M extends org.mule.runtime.api.meta.model.ComponentModel>
public interface CompletableComponentExecutor<M extends org.mule.runtime.api.meta.model.ComponentModel>
A facade interface which hides the details of how an operation is actually executed. It aims to decouple the abstract
introspection model that the extensions API proposes from the implementation details of the underlying environment.
- Since:
- 1.3.0
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceCallback to notify the operation's result. -
Method Summary
Modifier and TypeMethodDescriptionvoidexecute(ExecutionContext<M> executionContext, CompletableComponentExecutor.ExecutorCallback callback) Executes the operation using the givenexecutionContext.
-
Method Details
-
execute
void execute(ExecutionContext<M> executionContext, CompletableComponentExecutor.ExecutorCallback callback) Executes the operation using the givenexecutionContext. The outcome will be informed by calling the appropriate method in thecallback. Although this pattern is optimized for non blocking execution, notice that using this interface doesn't guarantee that non blocking execution will take place. The callback can always be completed synchronously.- Parameters:
executionContext- aExecutionContextwith information about the executioncallback- theCompletableComponentExecutor.ExecutorCallbackto notify the operation's result
-