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_RTTM, HDR_TYPE_SETUP, HDR_TYPE_SM, MIN_HEADER_LENGTH, 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, 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, getStringUtf8, getStringUtf8, getStringUtf8, 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 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 org.agrona.concurrent.UnsafeBuffer
Copyright © 2014-2018 Real Logic Ltd. All Rights Reserved.