public interface DestinationListener
DestinationListener is used to receive messages asynchronously.
When providing an implementation of DestinationListener to DestinationConsumer,
the received message is delivered asynchronously to the application through this callback
interface.
| Modifier and Type | Method and Description |
|---|---|
void |
onException(JCSMPException exception)
On error, this method is invoked.
|
void |
onReceive(BytesXMLMessage message)
Callback method to handle messages received by the
DestinationListener. |
void onReceive(BytesXMLMessage message)
DestinationListener.message - The BytesXMLMessage received.void onException(JCSMPException exception)
exception - The exception associated with the error condition.Copyright 2004-2021 Solace Corporation. All rights reserved.