Package io.aeron.status
Class PublicationErrorFrame
java.lang.Object
io.aeron.status.PublicationErrorFrame
- All Implemented Interfaces:
Cloneable
Encapsulates the data received when a publication receives an error frame.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()Return a copy of this message.longThe registrationId of the destination.intThe error code of the error frame received.The error message of the error frame received.longgroupTag()Group tag of the source that sent the error frame.longReceiver id of the source that send the error frame.longRegistration id of the publication that received the error frame.intSession id of the publication that received the error frame.set(PublicationErrorFrameFlyweight frameFlyweight) Set the fields of the publication error frame from the flyweight.The address of the remote source that sent the error frame.intstreamId()Stream id of the publication that received the error frame.toString()Build a String representation of the 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_VALUEif 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
The error message of the error frame received.- Returns:
- the error message.
-
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 beAeron.NULL_VALUEotherwise.- 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
Return a copy of this message. Useful if a callback is reusing an instance of this class to avoid unnecessary allocation. -
toString
Build a String representation of the error frame.
-