Class ProducerAck

  • All Implemented Interfaces:
    Command, DataStructure

    public class ProducerAck
    extends BaseCommand
    A ProducerAck command is sent by a broker to a producer to let it know it has received and processed messages that it has produced. The producer will be flow controlled if it does not receive ProducerAck commands back from the broker.
    • Field Detail

      • size

        protected int size
    • Constructor Detail

      • ProducerAck

        public ProducerAck()
      • ProducerAck

        public ProducerAck​(ProducerId producerId,
                           int size)
    • Method Detail

      • getDataStructureType

        public byte getDataStructureType()
        Returns:
        The type of the data structure
      • getProducerId

        public ProducerId getProducerId()
        The producer id that this ack message is destined for.
      • setProducerId

        public void setProducerId​(ProducerId producerId)
      • getSize

        public int getSize()
        The number of bytes that are being acked.
      • setSize

        public void setSize​(int size)