Package io.aeron
Interface PublicationErrorFrameHandler
public interface PublicationErrorFrameHandler
Interface for handling various error frame messages for publications.
- Since:
- 1.47.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final PublicationErrorFrameHandlerDefault no-op error frame handler. -
Method Summary
Modifier and TypeMethodDescriptionvoidonPublicationError(PublicationErrorFrame errorFrame) Called when an error frame for a publication is received by the local driver and needs to be propagated to the appropriate clients.
-
Field Details
-
NO_OP
Default no-op error frame handler.
-
-
Method Details
-
onPublicationError
Called when an error frame for a publication is received by the local driver and needs to be propagated to the appropriate clients. E.g. when an image is invalidated. This callback will reuse thePublicationErrorFrameinstance, so data is only valid for the lifetime of the callback. If the user needs to pass the data onto another thread or hold in another location for use later, then the user needs to make use of thePublicationErrorFrame.clone()method to create a copy for their own use.This callback will be executed on the client conductor thread, similar to image availability notifications.
This notification will only be propagated to clients that have added an instance of the Publication that received the error frame (i.e. the originalRegistrationId matches the registrationId on the error frame).
- Parameters:
errorFrame- containing the relevant information about the publication and the error message.
-