Class AbstractBatchMessageContainer

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

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

    • compressionType

      protected org.apache.pulsar.common.api.proto.CompressionType compressionType
    • compressor

      protected org.apache.pulsar.common.compression.CompressionCodec compressor
    • topicName

      protected String topicName
    • producerName

      protected String producerName
    • producer

      protected ProducerImpl producer
    • maxNumMessagesInBatch

      protected int maxNumMessagesInBatch
    • maxBytesInBatch

      protected int maxBytesInBatch
    • numMessagesInBatch

      protected int numMessagesInBatch
    • currentBatchSizeBytes

      protected long currentBatchSizeBytes
    • 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