Class LogBufferPartition
java.lang.Object
io.camunda.zeebe.dispatcher.impl.log.LogBufferPartition
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final org.agrona.concurrent.UnsafeBufferbuffer containing the data section for the pageprotected final org.agrona.concurrent.UnsafeBufferbuffer containing the metadata section for the pageprotected final intThe size of the partitionprotected final intthe offset of the partition's data buffer in the underlying buffer (see#underlyingBuffer. -
Constructor Summary
ConstructorsConstructorDescriptionLogBufferPartition(org.agrona.concurrent.UnsafeBuffer dataBuffer, org.agrona.concurrent.UnsafeBuffer metadataBuffer, int rawBufferOffset) -
Method Summary
Modifier and TypeMethodDescriptionvoidclean()intgetAndAddTail(int frameLength) org.agrona.concurrent.UnsafeBufferintintintintbooleanvoidsetStatusOrdered(int status)
-
Field Details
-
partitionSize
protected final int partitionSizeThe size of the partition -
dataBuffer
protected final org.agrona.concurrent.UnsafeBuffer dataBufferbuffer containing the data section for the page -
metadataBuffer
protected final org.agrona.concurrent.UnsafeBuffer metadataBufferbuffer containing the metadata section for the page -
rawBufferOffset
protected final int rawBufferOffsetthe offset of the partition's data buffer in the underlying buffer (see#underlyingBuffer.
-
-
Constructor Details
-
LogBufferPartition
public LogBufferPartition(org.agrona.concurrent.UnsafeBuffer dataBuffer, org.agrona.concurrent.UnsafeBuffer metadataBuffer, int rawBufferOffset)
-
-
Method Details
-
clean
public void clean() -
getDataBuffer
public org.agrona.concurrent.UnsafeBuffer getDataBuffer() -
getTailCounterVolatile
public int getTailCounterVolatile() -
getAndAddTail
public int getAndAddTail(int frameLength) -
getPartitionSize
public int getPartitionSize() -
setStatusOrdered
public void setStatusOrdered(int status) -
getStatusVolatile
public int getStatusVolatile() -
needsCleaning
public boolean needsCleaning() -
getUnderlyingBufferOffset
public int getUnderlyingBufferOffset()
-