Interface AMQPFederationAsyncCompletion<E>

Type Parameters:
E - The type that defines the context provided to the completion events

public interface AMQPFederationAsyncCompletion<E>
AMQPFederationAsyncCompletion type used to implement the handlers for asynchronous calls in AMQP federation types.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    onComplete(E context)
    Called when the asynchronous operation has succeeded.
    void
    onException(E context, Exception error)
    Called when the asynchronous operation has failed due to an error.
  • Method Details

    • onComplete

      void onComplete(E context)
      Called when the asynchronous operation has succeeded.
      Parameters:
      context - The context object provided for this asynchronous event.
    • onException

      void onException(E context, Exception error)
      Called when the asynchronous operation has failed due to an error.
      Parameters:
      context - The context object provided for this asynchronous event.
      error - The error that describes the failure that occurred.