Package io.aeron.command
Class PublicationBuffersReadyFlyweight
java.lang.Object
io.aeron.command.PublicationBuffersReadyFlyweight
Message to denote that new buffers have been created for a publication.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidappendLogFileName(Appendable appendable) Append the log file name to anAppendable.intThe channel status counter id.channelStatusCounterId(int counterId) Set channel status counter id field.longGet the correlation id field.correlationId(long correlationId) Set the correlation id field.intlength()Get the length of the current messageGet the log file name in ASCII.logFileName(String logFileName) Set the log file name in ASCII.intThe publication limit counter id.publicationLimitCounterId(int positionCounterId) set position counter id field.longGet the registration id field.registrationId(long registrationId) Set the correlation id field.intGet the session id field.sessionId(int sessionId) Set the session id field.intstreamId()Get the stream id field.streamId(int streamId) Set the stream id field.wrap(MutableDirectBuffer buffer, int offset) Wrap the buffer at a given offset for updates.
-
Constructor Details
-
PublicationBuffersReadyFlyweight
public PublicationBuffersReadyFlyweight()
-
-
Method Details
-
wrap
Wrap the buffer at a given offset for updates.- Parameters:
buffer- to wrap.offset- at which the message begins.- Returns:
- this for a fluent API.
-
correlationId
public long correlationId()Get the correlation id field.- Returns:
- correlation id field.
-
correlationId
Set the correlation id field.- Parameters:
correlationId- field value.- Returns:
- this for a fluent API.
-
registrationId
public long registrationId()Get the registration id field.- Returns:
- registration id field.
-
registrationId
Set the correlation id field.- Parameters:
registrationId- field value.- Returns:
- this for a fluent API.
-
sessionId
public int sessionId()Get the session id field.- Returns:
- session id field.
-
sessionId
Set the session id field.- Parameters:
sessionId- field value.- Returns:
- this for a fluent API.
-
streamId
public int streamId()Get the stream id field.- Returns:
- stream id field.
-
streamId
Set the stream id field.- Parameters:
streamId- field value.- Returns:
- this for a fluent API.
-
publicationLimitCounterId
public int publicationLimitCounterId()The publication limit counter id.- Returns:
- publication limit counter id.
-
publicationLimitCounterId
set position counter id field.- Parameters:
positionCounterId- field value.- Returns:
- this for a fluent API.
-
channelStatusCounterId
public int channelStatusCounterId()The channel status counter id.- Returns:
- channel status counter id.
-
channelStatusCounterId
Set channel status counter id field.- Parameters:
counterId- field value.- Returns:
- this for a fluent API.
-
logFileName
Get the log file name in ASCII.- Returns:
- the log file name in ASCII.
-
appendLogFileName
Append the log file name to anAppendable.- Parameters:
appendable- to append log file name to.
-
logFileName
Set the log file name in ASCII.- Parameters:
logFileName- for the publication buffers.- Returns:
- the log file name in ASCII.
-
length
public int length()Get the length of the current messageNB: must be called after the data is written in order to be accurate.
- Returns:
- the length of the current message
-