public class SimplifiedTransferQueueBundler extends TransferQueueBundler
TransferQueueBundler
but does not allocate
memory except for the buffer itself and does not use complex data structures.Modifier and Type | Field and Description |
---|---|
protected int |
curr |
protected static int |
MSG_BUF_SIZE |
protected Message[] |
msg_queue |
bundler_thread, queue, remove_queue, running, THREAD_NAME
Constructor and Description |
---|
SimplifiedTransferQueueBundler() |
SimplifiedTransferQueueBundler(int capacity) |
Modifier and Type | Method and Description |
---|---|
protected void |
addMessage(Message msg,
long size) |
protected void |
sendBundledMessages()
Sends all messages in the map.
|
protected void |
sendSingleMessage(Message msg,
ByteArrayDataOutputStream output) |
int |
size()
The number of unsent messages in the bundler
|
assertPositive, getBufferSize, getThread, init, removeQueueSize, removeQueueSize, run, send, start, stop
checkForSharedTransport, clearMessages, sendMessageList, sendSingleMessage, viewChange
protected static final int MSG_BUF_SIZE
protected final Message[] msg_queue
protected int curr
public SimplifiedTransferQueueBundler()
public SimplifiedTransferQueueBundler(int capacity)
public int size()
Bundler
size
in interface Bundler
size
in class TransferQueueBundler
protected void addMessage(Message msg, long size)
addMessage
in class BaseBundler
protected void sendBundledMessages()
BaseBundler
sendBundledMessages
in class BaseBundler
protected void sendSingleMessage(Message msg, ByteArrayDataOutputStream output)
Copyright © 1998-2020 Red Hat. All Rights Reserved.