Class PublicationErrorFrame

java.lang.Object
io.aeron.status.PublicationErrorFrame
All Implemented Interfaces:
Cloneable

public class PublicationErrorFrame extends Object implements Cloneable
Encapsulates the data received when a publication receives an error frame.
  • Constructor Details

    • PublicationErrorFrame

      public PublicationErrorFrame()
  • Method Details

    • registrationId

      public long registrationId()
      Registration id of the publication that received the error frame.
      Returns:
      registration id of the publication.
    • sessionId

      public int sessionId()
      Session id of the publication that received the error frame.
      Returns:
      session id of the publication.
    • streamId

      public int streamId()
      Stream id of the publication that received the error frame.
      Returns:
      stream id of the publication.
    • receiverId

      public long receiverId()
      Receiver id of the source that send the error frame.
      Returns:
      receiver id of the source that send the error frame.
    • groupTag

      public long groupTag()
      Group tag of the source that sent the error frame.
      Returns:
      group tag of the source that sent the error frame or Aeron.NULL_VALUE if the source did not have a group tag set.
    • errorCode

      public int errorCode()
      The error code of the error frame received.
      Returns:
      the error code.
    • errorMessage

      public String errorMessage()
      The error message of the error frame received.
      Returns:
      the error message.
    • sourceAddress

      public InetSocketAddress sourceAddress()
      The address of the remote source that sent the error frame.
      Returns:
      address of the remote source.
    • destinationRegistrationId

      public long destinationRegistrationId()
      The registrationId of the destination. Only used with manual MDC publications. Will be Aeron.NULL_VALUE otherwise.
      Returns:
      registrationId of the destination or Aeron.NULL_VALUE.
    • set

      Set the fields of the publication error frame from the flyweight.
      Parameters:
      frameFlyweight - that was received from the client message buffer.
      Returns:
      this for fluent API.
    • clone

      public PublicationErrorFrame clone()
      Return a copy of this message. Useful if a callback is reusing an instance of this class to avoid unnecessary allocation.
      Overrides:
      clone in class Object
      Returns:
      a copy of this instance's data.
    • toString

      public String toString()
      Build a String representation of the error frame.
      Overrides:
      toString in class Object
      Returns:
      a String representation of the error frame.