Package org.apache.storm.messaging.netty
Class MessageBuffer
- java.lang.Object
-
- org.apache.storm.messaging.netty.MessageBuffer
-
public class MessageBuffer extends Object
Encapsulates the state used for batching up messages.
-
-
Constructor Summary
Constructors Constructor Description MessageBuffer(int mesageBatchSize)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.storm.messaging.netty.MessageBatch
add(TaskMessage msg)
org.apache.storm.messaging.netty.MessageBatch
drain()
boolean
isEmpty()
-
-
-
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()
-
-