Class LogBufferPartition

java.lang.Object
io.camunda.zeebe.dispatcher.impl.log.LogBufferPartition

public class LogBufferPartition extends Object
  • Field Details

    • partitionSize

      protected final int partitionSize
      The size of the partition
    • dataBuffer

      protected final org.agrona.concurrent.UnsafeBuffer dataBuffer
      buffer containing the data section for the page
    • metadataBuffer

      protected final org.agrona.concurrent.UnsafeBuffer metadataBuffer
      buffer containing the metadata section for the page
    • rawBufferOffset

      protected final int rawBufferOffset
      the 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()