Class MessageBuffer


  • public class MessageBuffer
    extends Object
    Encapsulates the state used for batching up messages.
    • Constructor Detail

      • MessageBuffer

        public MessageBuffer​(int mesageBatchSize)
    • Method Detail

      • add

        public org.apache.storm.messaging.netty.MessageBatch add​(TaskMessage msg)
      • isEmpty

        public boolean isEmpty()
      • drain

        public org.apache.storm.messaging.netty.MessageBatch drain()