Class AbstractBatchMessageContainer

java.lang.Object
org.apache.pulsar.client.impl.AbstractBatchMessageContainer
All Implemented Interfaces:
BatchMessageContainer, BatchMessageContainerBase

public abstract class AbstractBatchMessageContainer extends Object implements BatchMessageContainerBase
Batch message container framework.
  • Field Details

    • compressionType

      protected CompressionType compressionType
    • compressor

      protected CompressionCodec compressor
    • topicName

      protected String topicName
    • producer

      protected ProducerImpl producer
    • maxNumMessagesInBatch

      protected int maxNumMessagesInBatch
    • maxBytesInBatch

      protected int maxBytesInBatch
    • numMessagesInBatch

      protected int numMessagesInBatch
    • currentBatchSizeBytes

      protected long currentBatchSizeBytes
    • batchAllocatedSizeBytes

      protected int batchAllocatedSizeBytes
    • currentTxnidMostBits

      protected long currentTxnidMostBits
    • currentTxnidLeastBits

      protected long currentTxnidLeastBits
    • INITIAL_BATCH_BUFFER_SIZE

      protected static final int INITIAL_BATCH_BUFFER_SIZE
      See Also:
    • INITIAL_MESSAGES_NUM

      protected static final int INITIAL_MESSAGES_NUM
      See Also:
    • maxBatchSize

      protected int maxBatchSize
    • maxMessagesNum

      protected int maxMessagesNum
  • Constructor Details

    • AbstractBatchMessageContainer

      public AbstractBatchMessageContainer()
  • Method Details