public class BinaryMessageAggregatorImpl extends MessageAggregatorImpl<byte[]> implements BinaryMessageAggregator
MessageAggregatorImpl.appendAtTheEnd, messageCount, messageList, separator| Constructor and Description |
|---|
BinaryMessageAggregatorImpl(byte[] separator, boolean appendAtTheEnd)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
int |
addMessage(byte[] message)
Enhances the message addition by keeping track of the total number of bytes in the aggregator.
|
protected byte[] |
aggregate()
Defines how the multiple arrays of bytes in this aggregator become one single array of bytes.
|
int |
getByteCount()
Getter for the current byte count.
|
getAggregatedMessage, getMessageCount, getSeparator, isAppendAtTheEndclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAggregatedMessage, getMessageCount, getSeparator, isAppendAtTheEndpublic BinaryMessageAggregatorImpl(byte[] separator,
boolean appendAtTheEnd)
separator -appendAtTheEnd -public int addMessage(byte[] message)
addMessage in interface MessageAggregator<byte[]>addMessage in class MessageAggregatorImpl<byte[]>message - the message to add.MessageAggregatorImpl.addMessage(java.lang.Object)protected byte[] aggregate()
aggregate in class MessageAggregatorImpl<byte[]>MessageAggregatorImpl.aggregate()public int getByteCount()