Class DataFrameDescriptor
java.lang.Object
io.camunda.zeebe.logstreams.impl.serializer.DataFrameDescriptor
Remnants of the dispatcher data framing. A 12 byte header starting with the frame length. The
rest of the 12 bytes are unused. This is kept for backwards-compatibility reasons because
LoggedEvent still expects this header.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic intalignedLength(int msgLength) static intframedLength(int msgLength) static intlengthOffset(int offset) static intmessageLength(int framedLength) static intmessageOffset(int offset) static voidsetFramedLength(org.agrona.MutableDirectBuffer buffer, int offset, int length)
-
Field Details
-
FRAME_LENGTH_OFFSET
public static final int FRAME_LENGTH_OFFSET- See Also:
-
FRAME_ALIGNMENT
public static final int FRAME_ALIGNMENT- See Also:
-
HEADER_LENGTH
public static final int HEADER_LENGTH- See Also:
-
-
Constructor Details
-
DataFrameDescriptor
public DataFrameDescriptor()
-
-
Method Details
-
setFramedLength
public static void setFramedLength(org.agrona.MutableDirectBuffer buffer, int offset, int length) -
alignedLength
public static int alignedLength(int msgLength) -
framedLength
public static int framedLength(int msgLength) -
lengthOffset
public static int lengthOffset(int offset) -
messageOffset
public static int messageOffset(int offset) -
messageLength
public static int messageLength(int framedLength)
-