public interface ClientMessageListener
LightstreamerClient.sendMessage(java.lang.String)
events reporting a message processing outcome.
Events for these listeners are dispatched by a different thread than the one that generates them.
All the notifications for a single LightstreamerClient, including notifications to
ClientListener
s, SubscriptionListener
s and ClientMessageListener
s will be dispatched by the
same thread.
Only one event per message is fired on this listener.Modifier and Type | Method and Description |
---|---|
void |
onAbort(java.lang.String originalMessage,
boolean sentOnNetwork)
Event handler that is called by Lightstreamer when any notifications of the processing outcome of the related
message haven't been received yet and can no longer be received.
|
void |
onDeny(java.lang.String originalMessage,
int code,
java.lang.String error)
Event handler that is called by Lightstreamer when the related message has been processed by the Server but the
expected processing outcome could not be achieved for any reason.
|
void |
onDiscarded(java.lang.String originalMessage)
Event handler that is called by Lightstreamer to notify that the related message has been discarded by the Server.
|
void |
onError(java.lang.String originalMessage)
Event handler that is called by Lightstreamer when the related message has been processed by the Server but the
processing has failed for any reason.
|
void |
onProcessed(java.lang.String originalMessage)
Event handler that is called by Lightstreamer when the related message has been processed by the Server with success.
|
void onAbort(java.lang.String originalMessage, boolean sentOnNetwork)
originalMessage
- the message to which this notification is related.sentOnNetwork
- true if the message was sent on the network, false otherwise.
Even if the flag is true, it is not possible to infer whether the message actually reached the
Lightstreamer Server or not.void onDeny(java.lang.String originalMessage, int code, java.lang.String error)
originalMessage
- the message to which this notification is related.code
- the error code sent by the Server. It can be one of the following:
error
- the description of the error sent by the Server.void onDiscarded(java.lang.String originalMessage)
originalMessage
- the message to which this notification is related.void onError(java.lang.String originalMessage)
originalMessage
- the message to which this notification is related.void onProcessed(java.lang.String originalMessage)
originalMessage
- the message to which this notification is related.