public class SetupFlyweight extends HeaderFlyweight
Stream Setup wiki page.
| Modifier and Type | Field and Description |
|---|---|
static int |
HEADER_LENGTH
Length of the Setup Message 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_OFFSETALIGNMENT, DISABLE_BOUNDS_CHECKS_PROP_NAME, SHOULD_BOUNDS_CHECKaddressOffset, byteArray, capacitySTRICT_ALIGNMENT_CHECKS, STRICT_ALIGNMENT_CHECKS_PROP_NAMEDISABLE_ARRAY_CONTENT_PRINTOUT_PROP_NAME, STR_HEADER_LEN| Constructor and Description |
|---|
SetupFlyweight()
Default constructor which can later be used to wrap a frame.
|
SetupFlyweight(ByteBuffer buffer)
Construct the flyweight over a frame.
|
SetupFlyweight(UnsafeBuffer buffer)
Construct the flyweight over a frame.
|
| Modifier and Type | Method and Description |
|---|---|
int |
activeTermId()
Get active term id field.
|
SetupFlyweight |
activeTermId(int termId)
Set active term id field.
|
int |
initialTermId()
Get initial term id field.
|
SetupFlyweight |
initialTermId(int termId)
Set initial term id field.
|
int |
mtuLength()
Get MTU length field.
|
SetupFlyweight |
mtuLength(int mtuLength)
Set MTU length field.
|
int |
sessionId()
Get session id field.
|
SetupFlyweight |
sessionId(int sessionId)
Set session id field.
|
int |
streamId()
Get stream id field.
|
SetupFlyweight |
streamId(int streamId)
Set stream id field.
|
int |
termLength()
Get term length field.
|
SetupFlyweight |
termLength(int termLength)
Set term length field.
|
int |
termOffset()
Get term offset field.
|
SetupFlyweight |
termOffset(int termOffset)
Set term offset field.
|
String |
toString() |
int |
ttl()
Get the TTL field.
|
SetupFlyweight |
ttl(int ttl)
Set the TTL field.
|
appendFlagsAsChars, flags, flags, flagsToChars, frameLength, frameLength, headerType, headerType, version, versionaddIntOrdered, addLongOrdered, byteBuffer, compareAndSetInt, compareAndSetLong, ensureCapacity, getAndAddInt, getAndAddLong, getAndSetInt, getAndSetLong, getByteVolatile, getCharVolatile, getIntVolatile, getLongVolatile, getShortVolatile, isExpandable, putByteVolatile, putCharVolatile, putIntOrdered, putIntVolatile, putLongOrdered, putLongVolatile, putShortVolatile, verifyAlignment, wrap, wrap, wrap, wrap, wrap, wrap, wrap, wrapAdjustmentaddressOffset, boundsCheck, boundsCheck0, byteArray, capacity, checkLimit, compareTo, equals, getByte, getBytes, getBytes, getBytes, getBytes, getBytes, getChar, getChar, getDouble, getDouble, getFloat, getFloat, getInt, getInt, getLong, getLong, getShort, getShort, getStringAscii, getStringAscii, getStringAscii, getStringAscii, getStringAscii, getStringAscii, getStringUtf8, getStringUtf8, getStringUtf8, getStringWithoutLengthAscii, getStringWithoutLengthAscii, getStringWithoutLengthUtf8, hashCode, parseIntAscii, parseLongAscii, parseNaturalIntAscii, parseNaturalLongAscii, putByte, putBytes, putBytes, putBytes, putBytes, putBytes, putChar, putChar, putDouble, putDouble, putFloat, putFloat, putInt, putInt, putIntAscii, putLong, putLong, putLongAscii, putNaturalIntAscii, putNaturalIntAsciiFromEnd, putNaturalLongAscii, putNaturalPaddedIntAscii, putShort, putShort, putStringAscii, putStringAscii, putStringAscii, putStringAscii, putStringUtf8, putStringUtf8, putStringUtf8, putStringUtf8, putStringWithoutLengthAscii, putStringWithoutLengthAscii, putStringWithoutLengthAscii, putStringWithoutLengthAscii, putStringWithoutLengthUtf8, setMemoryclone, finalize, getClass, notify, notifyAll, wait, wait, waitputByte, putBytes, putBytes, putBytes, putBytes, putBytes, putChar, putChar, putDouble, putDouble, putFloat, putFloat, putInt, putInt, putIntAscii, putLong, putLong, putLongAscii, putNaturalIntAscii, putNaturalIntAsciiFromEnd, putNaturalLongAscii, putNaturalPaddedIntAscii, putShort, putShort, putStringAscii, putStringAscii, putStringAscii, putStringAscii, putStringUtf8, putStringUtf8, putStringUtf8, putStringUtf8, putStringWithoutLengthAscii, putStringWithoutLengthAscii, putStringWithoutLengthAscii, putStringWithoutLengthAscii, putStringWithoutLengthUtf8, setMemoryaddressOffset, boundsCheck, byteArray, capacity, checkLimit, getByte, getBytes, getBytes, getBytes, getBytes, getBytes, getChar, getChar, getDouble, getDouble, getFloat, getFloat, getInt, getInt, getLong, getLong, getShort, getShort, getStringAscii, getStringAscii, getStringAscii, getStringAscii, getStringAscii, getStringAscii, getStringUtf8, getStringUtf8, getStringUtf8, getStringWithoutLengthAscii, getStringWithoutLengthAscii, getStringWithoutLengthUtf8, parseIntAscii, parseLongAscii, parseNaturalIntAscii, parseNaturalLongAsciicompareTopublic static final int HEADER_LENGTH
public SetupFlyweight()
public SetupFlyweight(UnsafeBuffer buffer)
buffer - containing the frame.public SetupFlyweight(ByteBuffer buffer)
buffer - containing the frame.public int termOffset()
public SetupFlyweight termOffset(int termOffset)
termOffset - field value.public int sessionId()
public SetupFlyweight sessionId(int sessionId)
sessionId - field value.public int streamId()
public SetupFlyweight streamId(int streamId)
streamId - field value.public int initialTermId()
public SetupFlyweight initialTermId(int termId)
termId - field value.public int activeTermId()
public SetupFlyweight activeTermId(int termId)
termId - field value.public int termLength()
public SetupFlyweight termLength(int termLength)
termLength - field value.public int mtuLength()
public SetupFlyweight mtuLength(int mtuLength)
mtuLength - field value.public int ttl()
public SetupFlyweight ttl(int ttl)
ttl - field value.public String toString()
toString in class UnsafeBufferCopyright © 2014-2023 Real Logic Limited. All Rights Reserved.