Class PublishResultHandler

java.lang.Object
org.apache.beam.sdk.io.solace.broker.PublishResultHandler
All Implemented Interfaces:
JCSMPStreamingPublishCorrelatingEventHandler, JCSMPStreamingPublishEventHandler

public final class PublishResultHandler extends Object implements JCSMPStreamingPublishCorrelatingEventHandler
This class is required to handle callbacks from Solace, to find out if messages were actually published or there were any kind of error.

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