Package io.aeron

Interface PublicationErrorFrameHandler


public interface PublicationErrorFrameHandler
Interface for handling various error frame messages for publications.
Since:
1.47.0
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    Default no-op error frame handler.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    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

  • Method Details

    • onPublicationError

      void onPublicationError(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. E.g. when an image is invalidated. This callback will reuse the PublicationErrorFrame instance, 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 the PublicationErrorFrame.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.