-
Notifications
You must be signed in to change notification settings - Fork 943
Image#reject
Nate Bradac edited this page Jun 6, 2025
·
3 revisions
Reject incoming sessions from a publisher. This allows you to quickly stop data flow in scenarios where the data is no longer needed or is invalid.
A reason String can be provided to the reject() API which will be transmitted via an Aeron error frame back to the publication, where it will be made available via a publication error frame handler.
When an image is rejected, it is closed, and that is indicated to all associated subscriptions sharing that media driver.
Image rejection is not permanant. After the image liveness timeout expires, if the publication still exists, subscriptions will attempt to reconnect and create a new image.