Interface MessageCompletionHandler
-
public interface MessageCompletionHandlerCompletion handler for asynchronous message operations.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidonError(MessagingException error)Reports that the operation has failed.voidonSuccess(Message message)Reports that the operation was successfully completed.
-
-
-
Method Detail
-
onSuccess
void onSuccess(Message message)
Reports that the operation was successfully completed.- Parameters:
message- Message for which the operation was successfully completed.
-
onError
void onError(MessagingException error)
Reports that the operation has failed.- Parameters:
error- Information about failure details.
-
-