Package javax.jms

Interface CompletionListener

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void onCompletion​(Message message)
      Notifies the application that the message has been successfully sent
      void onException​(Message message, java.lang.Exception exception)
      Notifies user that the specified exception was thrown while attempting to send the specified message.
    • Method Detail

      • onCompletion

        void onCompletion​(Message message)
        Notifies the application that the message has been successfully sent
        Parameters:
        message - the message that was sent.
      • onException

        void onException​(Message message,
                         java.lang.Exception exception)
        Notifies user that the specified exception was thrown while attempting to send the specified message. If an exception occurs it is undefined whether or not the message was successfully sent.
        Parameters:
        message - the message that was sent.
        exception - the exception