new CompletionListener()
Creates a CompletionListener object used to receive notifications
on messages sent asynchronously.
Method Summary
- onCompletion
- Notifies the application that the message has been successfully sent.
- onException
- Notifies that the specified exception was thrown while attempting to send the specified message.
Method Detail
-
onCompletion(message)
-
Notifies the application that the message has been successfully sent.
Parameters:
Name Type Description message
Message the message that was sent. -
onException(message, exception)
-
Notifies 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:
Name Type Description message
Message the message that was sent. exception
Exception the exception