public class PublicationMessageFlyweight extends CorrelatedMessageFlyweight
0 1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Correlation ID | | | +---------------------------------------------------------------+ | Stream ID | +---------------------------------------------------------------+ | Channel Length | +---------------------------------------------------------------+ | Channel (ASCII) ... ... | +---------------------------------------------------------------+
buffer, CLIENT_ID_FIELD_OFFSET, CORRELATION_ID_FIELD_OFFSET, LENGTH, offset
Constructor and Description |
---|
PublicationMessageFlyweight() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
channel()
Get the channel field in ASCII
|
PublicationMessageFlyweight |
channel(java.lang.String channel)
Set the channel field in ASCII
|
int |
length()
Get the length of the current message
|
int |
streamId()
Get the stream id field
|
PublicationMessageFlyweight |
streamId(int streamId)
Set the stream id field
|
clientId, clientId, correlationId, correlationId, wrap
public int streamId()
public PublicationMessageFlyweight streamId(int streamId)
streamId
- field valuepublic java.lang.String channel()
public PublicationMessageFlyweight channel(java.lang.String channel)
channel
- field valuepublic int length()
NB: must be called after the data is written in order to be accurate.
Copyright © 2014-2018 Real Logic Ltd. All Rights Reserved.