Class UnboundedStreamingSolaceWriter

All Implemented Interfaces:
Serializable, HasDisplayData

@Internal public final class UnboundedStreamingSolaceWriter extends UnboundedSolaceWriter
This DoFn is the responsible for writing to Solace in streaming mode (one message at a time, not holding up any message), and emit the corresponding output (success or fail; only for persistent messages), so the SolaceIO.Write connector can be composed with other subsequent transforms in the pipeline.

The DoFn will create several JCSMP sessions per VM, and the sessions and producers will be reused across different threads (if the number of threads is higher than the number of sessions, which is probably the most common case).

The producer uses the JCSMP streaming mode to publish a single message at a time, processing the acks from this publication, and returning them as output of the DoFn.

There are no acks if the delivery mode is set to DIRECT.

This writer DoFn offers lower latency and lower throughput than UnboundedBatchedSolaceWriter.

See Also: