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, stopcheckForSharedTransport, clearMessages, sendMessageList, sendSingleMessage, viewChangeprotected static final int MSG_BUF_SIZE
protected final Message[] msg_queue
protected int curr
public SimplifiedTransferQueueBundler()
public SimplifiedTransferQueueBundler(int capacity)
public int size()
Bundlersize in interface Bundlersize in class TransferQueueBundlerprotected void addMessage(Message msg, long size)
addMessage in class BaseBundlerprotected void sendBundledMessages()
BaseBundlersendBundledMessages in class BaseBundlerprotected void sendSingleMessage(Message msg, ByteArrayDataOutputStream output)
Copyright © 1998-2020 Red Hat. All Rights Reserved.