public class NakFlyweight extends HeaderFlyweight
Data Loss Recovery wiki page.
| Modifier and Type | Field and Description |
|---|---|
static int |
HEADER_LENGTH
Length of the frame in bytes.
|
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_CHECKDISABLE_ARRAY_CONTENT_PRINTOUT_PROP_NAME, STR_HEADER_LEN| Constructor and Description |
|---|
NakFlyweight()
Default constructor which can later be use to wrap a frame.
|
NakFlyweight(ByteBuffer buffer)
Construct the flyweight over a frame.
|
NakFlyweight(UnsafeBuffer buffer)
Construct the flyweight over a frame.
|
| Modifier and Type | Method and Description |
|---|---|
int |
length()
The length of the encoded frame.
|
NakFlyweight |
length(int length)
Set length of the encoded frame.
|
int |
sessionId()
The session-id for the stream.
|
NakFlyweight |
sessionId(int sessionId)
Set session-id for the stream.
|
int |
streamId()
The stream-id for the stream.
|
NakFlyweight |
streamId(int streamId)
Set stream-id for the stream.
|
int |
termId()
The term-id for the stream.
|
NakFlyweight |
termId(int termId)
Set term-id for the stream.
|
int |
termOffset()
The term-offset for the stream.
|
NakFlyweight |
termOffset(int termOffset)
Set term-offset for the stream.
|
String |
toString() |
appendFlagsAsChars, flags, flags, flagsToChars, 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, 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, wrapAdjustmentpublic static final int HEADER_LENGTH
public NakFlyweight()
public NakFlyweight(ByteBuffer buffer)
buffer - containing the frame.public NakFlyweight(UnsafeBuffer buffer)
buffer - containing the frame.public int sessionId()
public NakFlyweight sessionId(int sessionId)
sessionId - session-id for the stream.public int streamId()
public NakFlyweight streamId(int streamId)
streamId - stream-id for the stream.public int termId()
public NakFlyweight termId(int termId)
termId - term-id for the stream.public int termOffset()
public NakFlyweight termOffset(int termOffset)
termOffset - term-offset for the stream.public int length()
public NakFlyweight length(int length)
length - of the encoded frame.public String toString()
toString in class UnsafeBufferCopyright © 2014-2020 Real Logic Limited. All Rights Reserved.