public class SetupFlyweight extends HeaderFlyweight
| Modifier and Type | Field and Description |
|---|---|
static int |
HEADER_LENGTH
Size of the Setup Header
|
CURRENT_VERSION, EMPTY_BUFFER, FLAGS_FIELD_OFFSET, FRAME_LENGTH_FIELD_OFFSET, HDR_TYPE_DATA, HDR_TYPE_ERR, HDR_TYPE_EXT, HDR_TYPE_NAK, HDR_TYPE_PAD, HDR_TYPE_SETUP, HDR_TYPE_SM, TYPE_FIELD_OFFSET, VERSION_FIELD_OFFSET| Constructor and Description |
|---|
SetupFlyweight() |
SetupFlyweight(java.nio.ByteBuffer buffer) |
SetupFlyweight(org.agrona.concurrent.UnsafeBuffer buffer) |
| Modifier and Type | Method and Description |
|---|---|
int |
activeTermId()
return active term id field
|
SetupFlyweight |
activeTermId(int termId)
set active term id field
|
int |
initialTermId()
return initial term id field
|
SetupFlyweight |
initialTermId(int termId)
set initial term id field
|
int |
mtuLength()
Return MTU length field
|
SetupFlyweight |
mtuLength(int mtuLength)
Set MTU length field
|
int |
sessionId()
return session id field
|
SetupFlyweight |
sessionId(int sessionId)
set session id field
|
int |
streamId()
return stream id field
|
SetupFlyweight |
streamId(int streamId)
set stream id field
|
int |
termLength()
return term length field
|
SetupFlyweight |
termLength(int termLength)
set term length field
|
int |
termOffset()
return term offset field
|
SetupFlyweight |
termOffset(int termOffset)
set term offset field
|
java.lang.String |
toString() |
int |
ttl()
Return the TTL field
|
SetupFlyweight |
ttl(int ttl)
Set the TTL field
|
flags, flags, frameLength, frameLength, headerType, headerType, version, versionaddIntOrdered, 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, getStringUtf8, getStringUtf8, getStringUtf8, getStringWithoutLengthUtf8, hashCode, isExpandable, putByte, putBytes, putBytes, putBytes, putBytes, putBytes, putByteVolatile, putChar, putChar, putCharVolatile, putDouble, putDouble, putFloat, putFloat, putInt, putInt, putIntOrdered, putIntVolatile, putLong, putLong, putLongOrdered, putLongVolatile, putShort, putShort, putShortVolatile, putStringUtf8, putStringUtf8, putStringUtf8, putStringUtf8, putStringWithoutLengthUtf8, setMemory, verifyAlignment, wrap, wrap, wrap, wrap, wrap, wrap, wrap, wrapAdjustmentpublic static final int HEADER_LENGTH
public SetupFlyweight()
public SetupFlyweight(org.agrona.concurrent.UnsafeBuffer buffer)
public SetupFlyweight(java.nio.ByteBuffer buffer)
public int termOffset()
public SetupFlyweight termOffset(int termOffset)
termOffset - field valuepublic int sessionId()
public SetupFlyweight sessionId(int sessionId)
sessionId - field valuepublic int streamId()
public SetupFlyweight streamId(int streamId)
streamId - field valuepublic int initialTermId()
public SetupFlyweight initialTermId(int termId)
termId - field valuepublic int activeTermId()
public SetupFlyweight activeTermId(int termId)
termId - field valuepublic int termLength()
public SetupFlyweight termLength(int termLength)
termLength - field valuepublic int mtuLength()
public SetupFlyweight mtuLength(int mtuLength)
mtuLength - field valuepublic int ttl()
public SetupFlyweight ttl(int ttl)
ttl - field valuepublic java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2014 - 2016 Real Logic Ltd. All Rights Reserved.