public class RttMeasurementFlyweight extends HeaderFlyweight
RTT Measurement Frame Header wiki page.
| Modifier and Type | Field and Description |
|---|---|
static int |
HEADER_LENGTH
Length of the header of the frame.
|
static short |
REPLY_FLAG
Flag set to indicate this is a reply message.
|
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 |
|---|
RttMeasurementFlyweight()
Default constructor which can later be used to wrap a frame.
|
RttMeasurementFlyweight(ByteBuffer buffer)
Construct the flyweight over a frame.
|
RttMeasurementFlyweight(UnsafeBuffer buffer)
Construct the flyweight over a frame.
|
| Modifier and Type | Method and Description |
|---|---|
long |
echoTimestampNs()
Timestamp to echo in a reply or the timestamp in the original RTT Measurement.
|
RttMeasurementFlyweight |
echoTimestampNs(long timestampNs)
Set timestamp to echo in a reply or the timestamp in the original RTT Measurement.
|
long |
receiverId()
The receiver-id which uniquely identifies a receiver of a stream.
|
RttMeasurementFlyweight |
receiverId(long id)
Set receiver-id which uniquely identifies a receiver of a stream.
|
long |
receptionDelta()
Time in nanoseconds between receiving original RTT Measurement and sending Reply RTT Measurement.
|
RttMeasurementFlyweight |
receptionDelta(long deltaNs)
Set time in nanoseconds between receiving original RTT Measurement and sending Reply RTT Measurement.
|
int |
sessionId()
The session-id for the stream.
|
RttMeasurementFlyweight |
sessionId(int sessionId)
Set session-id for the stream.
|
int |
streamId()
The stream-id for the stream.
|
RttMeasurementFlyweight |
streamId(int streamId)
Set stream-id for the stream.
|
String |
toString() |
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 short REPLY_FLAG
public static final int HEADER_LENGTH
public RttMeasurementFlyweight()
public RttMeasurementFlyweight(ByteBuffer buffer)
buffer - containing the frame.public RttMeasurementFlyweight(UnsafeBuffer buffer)
buffer - containing the frame.public int sessionId()
public RttMeasurementFlyweight sessionId(int sessionId)
sessionId - session-id for the stream.public int streamId()
public RttMeasurementFlyweight streamId(int streamId)
streamId - stream-id for the stream.public long echoTimestampNs()
public RttMeasurementFlyweight echoTimestampNs(long timestampNs)
timestampNs - to echo in a reply or the timestamp in the original RTT Measurement.public long receptionDelta()
public RttMeasurementFlyweight receptionDelta(long deltaNs)
deltaNs - in nanoseconds between receiving original RTT Measurement and sending Reply RTT Measurement.public long receiverId()
public RttMeasurementFlyweight receiverId(long id)
id - for the receiver of the stream.public String toString()
toString in class UnsafeBufferCopyright © 2014-2023 Real Logic Limited. All Rights Reserved.