public final class PublishResultHandler extends java.lang.Object implements JCSMPStreamingPublishCorrelatingEventHandler
This class is also used to calculate the latency of the publication. The correlation key contains the original timestamp of when the message was sent from the pipeline to Solace. The comparison of that value with the clock now, using a monotonic clock, is understood as the latency of the publication
| Constructor and Description |
|---|
PublishResultHandler(java.util.Queue<Solace.PublishResult> publishResultsQueue) |
| Modifier and Type | Method and Description |
|---|---|
void |
handleErrorEx(java.lang.Object key,
JCSMPException cause,
long timestamp) |
void |
responseReceivedEx(java.lang.Object key) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waithandleError, responseReceivedpublic PublishResultHandler(java.util.Queue<Solace.PublishResult> publishResultsQueue)
public void handleErrorEx(java.lang.Object key,
JCSMPException cause,
long timestamp)
handleErrorEx in interface JCSMPStreamingPublishCorrelatingEventHandlerpublic void responseReceivedEx(java.lang.Object key)
responseReceivedEx in interface JCSMPStreamingPublishCorrelatingEventHandler