public class MessageBuffer extends Object
Encapsulates the state used for batching up messages.
Constructor and Description |
---|
MessageBuffer(int mesageBatchSize) |
Modifier and Type | Method and Description |
---|---|
org.apache.storm.messaging.netty.MessageBatch |
add(TaskMessage msg) |
org.apache.storm.messaging.netty.MessageBatch |
drain() |
boolean |
isEmpty() |
public org.apache.storm.messaging.netty.MessageBatch add(TaskMessage msg)
public boolean isEmpty()
public org.apache.storm.messaging.netty.MessageBatch drain()
Copyright © 2022 The Apache Software Foundation. All rights reserved.