public class HeaderFlyweight
extends org.agrona.concurrent.UnsafeBuffer
0 1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Frame Length | +---------------------------------------------------------------+ | Version | Flags | Type | +-------------+---------------+---------------------------------+ | Depends on Type ...
Modifier and Type | Field and Description |
---|---|
static byte |
CURRENT_VERSION
default version
|
static int |
FLAGS_FIELD_OFFSET |
static int |
FRAME_LENGTH_FIELD_OFFSET |
static int |
HDR_TYPE_DATA
header type DATA
|
static int |
HDR_TYPE_ERR
header type ERR
|
static int |
HDR_TYPE_EXT
header type EXT
|
static int |
HDR_TYPE_NAK
header type NAK
|
static int |
HDR_TYPE_PAD
header type PAD
|
static int |
HDR_TYPE_RTTM
header type RTT Measurement
|
static int |
HDR_TYPE_SETUP
header type SETUP
|
static int |
HDR_TYPE_SM
header type SM
|
static int |
MIN_HEADER_LENGTH |
static int |
TYPE_FIELD_OFFSET |
static int |
VERSION_FIELD_OFFSET |
Constructor and Description |
---|
HeaderFlyweight() |
HeaderFlyweight(java.nio.ByteBuffer buffer) |
HeaderFlyweight(org.agrona.concurrent.UnsafeBuffer buffer) |
Modifier and Type | Method and Description |
---|---|
short |
flags()
return flags field value
|
HeaderFlyweight |
flags(short flags)
set the flags field value
|
int |
frameLength()
return frame length field
|
HeaderFlyweight |
frameLength(int length)
set frame length field
|
int |
headerType()
return header type field
|
HeaderFlyweight |
headerType(int type)
set header type field
|
short |
version()
return version field value
|
HeaderFlyweight |
version(short version)
set version field value
|
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, toString, verifyAlignment, wrap, wrap, wrap, wrap, wrap, wrap, wrap, wrapAdjustment
public static final int HDR_TYPE_PAD
public static final int HDR_TYPE_DATA
public static final int HDR_TYPE_NAK
public static final int HDR_TYPE_SM
public static final int HDR_TYPE_ERR
public static final int HDR_TYPE_SETUP
public static final int HDR_TYPE_RTTM
public static final int HDR_TYPE_EXT
public static final byte CURRENT_VERSION
public static final int FRAME_LENGTH_FIELD_OFFSET
public static final int VERSION_FIELD_OFFSET
public static final int FLAGS_FIELD_OFFSET
public static final int TYPE_FIELD_OFFSET
public static final int MIN_HEADER_LENGTH
public HeaderFlyweight()
public HeaderFlyweight(org.agrona.concurrent.UnsafeBuffer buffer)
public HeaderFlyweight(java.nio.ByteBuffer buffer)
public short version()
public HeaderFlyweight version(short version)
version
- field valuepublic short flags()
public HeaderFlyweight flags(short flags)
flags
- field valuepublic int headerType()
public HeaderFlyweight headerType(int type)
type
- field valuepublic int frameLength()
public HeaderFlyweight frameLength(int length)
length
- field valueCopyright © 2014-2018 Real Logic Ltd. All Rights Reserved.