Package io.aeron

Class ConcurrentPublication

java.lang.Object
io.aeron.Publication
io.aeron.ConcurrentPublication
All Implemented Interfaces:
AutoCloseable

public final class ConcurrentPublication extends Publication
Aeron publisher API for sending messages to subscribers of a given channel and streamId pair. Publications are created via the Aeron.addPublication(String, int) method, and messages are sent via one of the Publication.offer(DirectBuffer) methods, or a tryClaim(int, BufferClaim) and BufferClaim.commit() method combination.

The APIs for tryClaim and offer are non-blocking and thread safe.

Note: Instances are threadsafe and can be shared between publishing threads.

See Also: