public class DataFrameDescriptor extends Object
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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ |R| Frame Length | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-------------------------------+ | Version |B|E|F| Flags | Type | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-------------------------------+ | StreamId | +---------------------------------------------------------------+ | | | Message ... ... | +---------------------------------------------------------------+
Frame length: Including the length of the header to ensure length is always > 0 which is important for distinguishing committed from uncommitted but claimed fragments.
Flags:
| Modifier and Type | Field and Description |
|---|---|
static int |
FLAG_BATCH_BEGIN_BITMASK |
static int |
FLAG_BATCH_END_BITMASK |
static int |
FLAG_FAILED_BITMASK |
static int |
FLAGS_OFFSET |
static int |
FRAME_ALIGNMENT |
static int |
FRAME_LENGTH_OFFSET |
static int |
HEADER_LENGTH |
static int |
STREAM_ID_OFFSET |
static short |
TYPE_MESSAGE |
static int |
TYPE_OFFSET |
static short |
TYPE_PADDING |
static int |
VERSION_OFFSET |
| Constructor and Description |
|---|
DataFrameDescriptor() |
| Modifier and Type | Method and Description |
|---|---|
static int |
alignedFramedLength(int msgLength) |
static int |
alignedLength(int msgLength) |
static byte |
enableFlagBatchBegin(byte flags) |
static byte |
enableFlagBatchEnd(byte flags) |
static byte |
enableFlagFailed(byte flags) |
static boolean |
flagBatchBegin(byte flags) |
static boolean |
flagBatchEnd(byte flags) |
static boolean |
flagFailed(byte flags) |
static int |
flagsOffset(int offset) |
static int |
framedLength(int msgLength) |
static int |
lengthOffset(int offset) |
static int |
messageLength(int framedLength) |
static int |
messageOffset(int offset) |
static int |
streamIdOffset(int offset) |
static int |
typeOffset(int offset) |
static int |
versionOffset(int offset) |
public static final int FRAME_ALIGNMENT
public static final int FRAME_LENGTH_OFFSET
public static final int VERSION_OFFSET
public static final int FLAGS_OFFSET
public static final int TYPE_OFFSET
public static final int STREAM_ID_OFFSET
public static final short TYPE_MESSAGE
public static final short TYPE_PADDING
public static final int HEADER_LENGTH
public static final int FLAG_BATCH_BEGIN_BITMASK
public static final int FLAG_BATCH_END_BITMASK
public static final int FLAG_FAILED_BITMASK
public static int lengthOffset(int offset)
public static int versionOffset(int offset)
public static int flagsOffset(int offset)
public static int typeOffset(int offset)
public static int streamIdOffset(int offset)
public static int messageOffset(int offset)
public static int alignedFramedLength(int msgLength)
public static int alignedLength(int msgLength)
public static int framedLength(int msgLength)
public static int messageLength(int framedLength)
public static boolean flagFailed(byte flags)
public static byte enableFlagFailed(byte flags)
public static boolean flagBatchBegin(byte flags)
public static byte enableFlagBatchBegin(byte flags)
public static boolean flagBatchEnd(byte flags)
public static byte enableFlagBatchEnd(byte flags)
Copyright © 2017–2018 camunda services GmbH. All rights reserved.