Class LogBufferAppender
java.lang.Object
io.camunda.zeebe.dispatcher.impl.log.LogBufferAppender
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintappendFrame(LogBufferPartition partition, int activePartitionId, org.agrona.DirectBuffer msg, int start, int length, int streamId) intclaim(LogBufferPartition partition, int activePartitionId, ClaimedFragmentBatch batch, int fragmentCount, int batchLength, Runnable onComplete) intclaim(LogBufferPartition partition, int activePartitionId, ClaimedFragment claim, int length, int streamId, Runnable onComplete) static intclaimedBatchLength(int fragmentCount, int batchLength) static intclaimedFragmentLength(int length) protected intonEndOfPartition(LogBufferPartition partition, int partitionOffset, int activePartitionId)
-
Field Details
-
RESULT_PADDING_AT_END_OF_PARTITION
public static final int RESULT_PADDING_AT_END_OF_PARTITION- See Also:
-
RESULT_END_OF_PARTITION
public static final int RESULT_END_OF_PARTITION- See Also:
-
-
Constructor Details
-
LogBufferAppender
public LogBufferAppender()
-
-
Method Details
-
appendFrame
public int appendFrame(LogBufferPartition partition, int activePartitionId, org.agrona.DirectBuffer msg, int start, int length, int streamId) -
claim
public int claim(LogBufferPartition partition, int activePartitionId, ClaimedFragment claim, int length, int streamId, Runnable onComplete) -
claimedFragmentLength
public static int claimedFragmentLength(int length) -
claim
public int claim(LogBufferPartition partition, int activePartitionId, ClaimedFragmentBatch batch, int fragmentCount, int batchLength, Runnable onComplete) -
claimedBatchLength
public static int claimedBatchLength(int fragmentCount, int batchLength) -
onEndOfPartition
protected int onEndOfPartition(LogBufferPartition partition, int partitionOffset, int activePartitionId)
-