public class BasicPublisher extends Object
This publisher sends a fixed number of messages on a channel and stream ID,
then lingers to allow any consumers that may have experienced loss a chance to NAK for
and recover any missing data.
The default values for number of messages, channel, and stream ID are
defined in SampleConfiguration and can be overridden by
setting their corresponding properties via the command-line; e.g.:
-Daeron.sample.channel=aeron:udp?endpoint=localhost:5555 -Daeron.sample.streamId=20
| Constructor and Description |
|---|
BasicPublisher() |
| Modifier and Type | Method and Description |
|---|---|
static void |
main(String[] args)
Main method for launching the process.
|
public static void main(String[] args) throws InterruptedException
args - passed to the process.InterruptedException - if the thread sleep delay is interrupted.Copyright © 2014-2023 Real Logic Limited. All Rights Reserved.