Interface CompletableComponentExecutor.ExecutorCallback

All Superinterfaces:
org.mule.runtime.api.component.execution.CompletableCallback<Object>
Enclosing interface:
CompletableComponentExecutor<M extends org.mule.runtime.api.meta.model.ComponentModel>

public static interface CompletableComponentExecutor.ExecutorCallback extends org.mule.runtime.api.component.execution.CompletableCallback<Object>
Callback to notify the operation's result.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Invoked when the operation completed successfully.
    void
    This method is invoked when the operation failed to execute.

    Methods inherited from interface org.mule.runtime.api.component.execution.CompletableCallback

    andThen, andThen, before, before, finallyAfter, finallyBefore
  • Method Details

    • complete

      void complete(Object value)
      Invoked when the operation completed successfully. If the operation is void, a null value should be passed
      Specified by:
      complete in interface org.mule.runtime.api.component.execution.CompletableCallback<Object>
      Parameters:
      value - the operation's result
    • error

      void error(Throwable e)
      This method is invoked when the operation failed to execute.
      Specified by:
      error in interface org.mule.runtime.api.component.execution.CompletableCallback<Object>
      Parameters:
      e - the exception found