Skip to content

I called poll once, but nothing was received?

Problem

You've set up a subscription and have a connected publication. Your publication has sent data. You've polled the subscription once, or a small amount of times, and your data has not appeared.

Solution

Continuously poll your subscription until the data is received.

Discussion

Aeron Subscriptions are designed to be polled within a duty cycle. The data will be made available to the subscription once it has made it's way through the remote Publication, remote Sender, local Receiver and then finally to your Subscription.

To fix this, run your subscription.poll(...) within a loop. It is recommended that this loop be part of a duty cycle (as part of an Agent), controlled by an Idle Strategy so that your resource utilization can be finely managed.

See Also

Back to top