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
  • Method Details

    • execute

      void execute(ExecutionContext<M> executionContext, CompletableComponentExecutor.ExecutorCallback callback)
      Executes the operation using the given executionContext. The outcome will be informed by calling the appropriate method in the callback. 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 - a ExecutionContext with information about the execution
      callback - the CompletableComponentExecutor.ExecutorCallback to notify the operation's result