onDeny method

void onDeny(
  1. String originalMessage,
  2. int errorCode,
  3. String errorMessage
)

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.

  • originalMessage the message to which this notification is related.
  • errorCode the error code sent by the Server. It can be one of the following:
    • <= 0 - the Metadata Adapter has refused the message; the code value is dependent on the specific Metadata Adapter implementation.
  • errorMessage the description of the error sent by the Server.

Implementation

void onDeny(String originalMessage, int errorCode, String errorMessage) {}