public interface JCSMPStreamingPublishCorrelatingEventHandler extends JCSMPStreamingPublishEventHandler
The methods in this callback interface replace the ones defined in
JCSMPStreamingPublishEventHandler. These callback methods are
invoked to notify a publishing application of publisher failures or message
acknowledgements from the appliance.
XMLMessage.setCorrelationKey(Object)| Modifier and Type | Method and Description |
|---|---|
void |
handleErrorEx(Object key,
JCSMPException cause,
long timestamp)
This method is invoked during streaming publishing if there is an error
in reading the response, or if a non-OK response is read.
|
void |
responseReceivedEx(Object key)
This method is invoked whenever an OK response is received.
|
handleError, responseReceivedvoid responseReceivedEx(Object key)
When publishing PERSISTENT and
NON_PERSISTENT messages, the
message's correlation key is passed as an argument to this callback when
an acknowledgement is received.
Note: DIRECT messages do not receive
acknowledgements. Therefore, this method is not invoked for Direct messages.
key - The correlation key of the message being acknowledged.XMLMessage.setCorrelationKey(Object)void handleErrorEx(Object key, JCSMPException cause, long timestamp)
Note: Handler processing should be kept to a minimum as this blocks the thread from which the error originated.
Note: Direct messages are not buffered by the publishing API, and
error responses from the appliance cannot be correlated to published Direct
messages. As a result, when a Direct message is rejected by an error
response, the key parameter to this callback is
null.
JCSMPErrorResponseException. The following subcodes can be
present to provide further information about why the message was
rejected:
JCSMPErrorResponseSubcodeEx.MESSAGE_TOO_LARGEJCSMPErrorResponseSubcodeEx.QUEUE_NOT_FOUNDJCSMPErrorResponseSubcodeEx.INVALID_TOPIC_SYNTAXJCSMPErrorResponseSubcodeEx.XML_PARSE_ERRORJCSMPErrorResponseSubcodeEx.PUBLISH_ACL_DENIEDJCSMPErrorResponseSubcodeEx.PUBLISH_NO_VALID_CLOSED_USER_GROUPJCSMPErrorResponseSubcodeEx.MAX_MESSAGE_USAGE_EXCEEDEDJCSMPErrorResponseSubcodeEx.SPOOL_OVER_QUOTAkey - The correlation key of the message with which the error
condition is associated.cause - The error condition.timestamp - The time of the error given by
System.currentTimeMillis().XMLMessage.setCorrelationKey(Object)Copyright 2004-2018 Solace Corporation. All rights reserved.