public class StatusMessageFlyweight extends HeaderFlyweight
Status Message wiki page.
Modifier and Type | Field and Description |
---|---|
static int |
HEADER_LENGTH
Length of the Status Message Frame
|
static short |
SEND_SETUP_FLAG
Publisher should send SETUP frame
|
CURRENT_VERSION, FLAGS_FIELD_OFFSET, FRAME_LENGTH_FIELD_OFFSET, HDR_TYPE_DATA, HDR_TYPE_ERR, HDR_TYPE_EXT, HDR_TYPE_NAK, HDR_TYPE_PAD, HDR_TYPE_RES, HDR_TYPE_RTTM, HDR_TYPE_SETUP, HDR_TYPE_SM, MIN_HEADER_LENGTH, TYPE_FIELD_OFFSET, VERSION_FIELD_OFFSET
ALIGNMENT, DISABLE_BOUNDS_CHECKS_PROP_NAME, SHOULD_BOUNDS_CHECK, SHOULD_PRINT_ARRAY_CONTENT
DISABLE_ARRAY_CONTENT_PRINTOUT_PROP_NAME, STR_HEADER_LEN
Constructor and Description |
---|
StatusMessageFlyweight() |
StatusMessageFlyweight(ByteBuffer buffer) |
StatusMessageFlyweight(UnsafeBuffer buffer) |
Modifier and Type | Method and Description |
---|---|
int |
asfLength()
The length of the Application Specific Feedback (or gtag).
|
int |
consumptionTermId()
The highest consumption term-id.
|
StatusMessageFlyweight |
consumptionTermId(int termId)
Set the highest consumption term-id.
|
int |
consumptionTermOffset()
The highest consumption offset within the term.
|
StatusMessageFlyweight |
consumptionTermOffset(int termOffset)
Set the highest consumption offset within the term.
|
long |
getLongUnaligned(int offset)
Get long value from a field that is not aligned on an 8 byte boundary.
|
long |
groupTag()
The group tag (if present) from the Status Message.
|
StatusMessageFlyweight |
groupTag(Long groupTag)
Set the Receiver Group Tag for the Status Message.
|
static int |
groupTagFieldOffset()
Return the field offset within the flyweight for the group tag field.
|
StatusMessageFlyweight |
putLongUnaligned(int offset,
long value)
Set long value into a field that is not aligned on an 8 byte boundary.
|
long |
receiverId()
Identifier for the receiver to distinguish them for FlowControl strategies.
|
StatusMessageFlyweight |
receiverId(long id)
Identifier for the receiver to distinguish them for FlowControl strategies.
|
int |
receiverWindowLength()
The receiver window length they will accept.
|
StatusMessageFlyweight |
receiverWindowLength(int receiverWindowLength)
Set the receiver window length they will accept.
|
int |
sessionId()
The session-id for the stream.
|
StatusMessageFlyweight |
sessionId(int sessionId)
Set the session-id of the stream.
|
int |
streamId()
The stream-id for the stream.
|
StatusMessageFlyweight |
streamId(int streamId)
Set the session-id for the stream.
|
String |
toString() |
appendFlagsAsChars, flags, flags, flagsToChars, frameLength, frameLength, headerType, headerType, version, version
addIntOrdered, addLongOrdered, addressOffset, boundsCheck, byteArray, byteBuffer, capacity, checkLimit, compareAndSetInt, compareAndSetLong, compareTo, equals, getAndAddInt, getAndAddLong, getAndSetInt, getAndSetLong, getByte, getBytes, getBytes, getBytes, getBytes, getBytes, getByteVolatile, getChar, getChar, getCharVolatile, getDouble, getDouble, getFloat, getFloat, getInt, getInt, getIntVolatile, getLong, getLong, getLongVolatile, getShort, getShort, getShortVolatile, getStringAscii, getStringAscii, getStringAscii, getStringAscii, getStringAscii, getStringAscii, getStringUtf8, getStringUtf8, getStringUtf8, getStringWithoutLengthAscii, getStringWithoutLengthAscii, getStringWithoutLengthUtf8, hashCode, isExpandable, parseIntAscii, parseLongAscii, parseNaturalIntAscii, parseNaturalLongAscii, putByte, putBytes, putBytes, putBytes, putBytes, putBytes, putByteVolatile, putChar, putChar, putCharVolatile, putDouble, putDouble, putFloat, putFloat, putInt, putInt, putIntAscii, putIntOrdered, putIntVolatile, putLong, putLong, putLongAscii, putLongOrdered, putLongVolatile, putNaturalIntAscii, putNaturalIntAsciiFromEnd, putNaturalLongAscii, putNaturalPaddedIntAscii, putShort, putShort, putShortVolatile, putStringAscii, putStringAscii, putStringUtf8, putStringUtf8, putStringUtf8, putStringUtf8, putStringWithoutLengthAscii, putStringWithoutLengthAscii, putStringWithoutLengthUtf8, setMemory, verifyAlignment, wrap, wrap, wrap, wrap, wrap, wrap, wrap, wrapAdjustment
public static final int HEADER_LENGTH
public static final short SEND_SETUP_FLAG
public StatusMessageFlyweight()
public StatusMessageFlyweight(ByteBuffer buffer)
public StatusMessageFlyweight(UnsafeBuffer buffer)
public int sessionId()
public StatusMessageFlyweight sessionId(int sessionId)
sessionId
- field valuepublic int streamId()
public StatusMessageFlyweight streamId(int streamId)
streamId
- field valuepublic int consumptionTermOffset()
public StatusMessageFlyweight consumptionTermOffset(int termOffset)
termOffset
- field valuepublic int consumptionTermId()
public StatusMessageFlyweight consumptionTermId(int termId)
termId
- field valuepublic int receiverWindowLength()
public StatusMessageFlyweight receiverWindowLength(int receiverWindowLength)
receiverWindowLength
- field valuepublic long receiverId()
public StatusMessageFlyweight receiverId(long id)
id
- for the receiver to distinguish them for FlowControl strategies.public int asfLength()
public long groupTag()
public StatusMessageFlyweight groupTag(Long groupTag)
groupTag
- value to set if not nullpublic static int groupTagFieldOffset()
public long getLongUnaligned(int offset)
offset
- of the field to get.public StatusMessageFlyweight putLongUnaligned(int offset, long value)
offset
- of the field to put.value
- of the field to pu.public String toString()
toString
in class UnsafeBuffer
Copyright © 2014-2020 Real Logic Limited. All Rights Reserved.