public class TransferQueueBundler extends BaseBundler implements java.lang.Runnable
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.Thread |
bundler_thread |
protected java.util.concurrent.BlockingQueue<Message> |
queue |
protected java.util.List<Message> |
remove_queue |
protected boolean |
running |
protected static java.lang.String |
THREAD_NAME |
| Modifier | Constructor and Description |
|---|---|
|
TransferQueueBundler() |
protected |
TransferQueueBundler(java.util.concurrent.BlockingQueue<Message> queue) |
|
TransferQueueBundler(int capacity) |
| Modifier and Type | Method and Description |
|---|---|
protected static int |
assertPositive(int value,
java.lang.String message) |
int |
getBufferSize() |
java.lang.Thread |
getThread() |
void |
init(TP transport)
Called after creation of the bundler
|
int |
removeQueueSize() |
TransferQueueBundler |
removeQueueSize(int size) |
void |
run() |
void |
send(Message msg) |
int |
size()
The number of unsent messages in the bundler
|
void |
start()
Called after
Bundler.init(TP) |
void |
stop() |
addMessage, checkForSharedTransport, clearMessages, sendBundledMessages, sendMessageList, sendSingleMessage, viewChangeprotected java.util.concurrent.BlockingQueue<Message> queue
protected java.util.List<Message> remove_queue
protected volatile java.lang.Thread bundler_thread
protected volatile boolean running
protected static final java.lang.String THREAD_NAME
public TransferQueueBundler()
protected TransferQueueBundler(java.util.concurrent.BlockingQueue<Message> queue)
public TransferQueueBundler(int capacity)
public java.lang.Thread getThread()
public int getBufferSize()
public int removeQueueSize()
public TransferQueueBundler removeQueueSize(int size)
public void init(TP transport)
Bundlerinit in interface Bundlerinit in class BaseBundlertransport - the transport, for further referencepublic void start()
BundlerBundler.init(TP)start in interface Bundlerstart in class BaseBundlerpublic void stop()
stop in interface Bundlerstop in class BaseBundlerpublic int size()
Bundlersize in interface Bundlersize in class BaseBundlerpublic void send(Message msg) throws java.lang.Exception
send in interface Bundlersend in class BaseBundlerjava.lang.Exceptionpublic void run()
run in interface java.lang.Runnableprotected static int assertPositive(int value,
java.lang.String message)
Copyright © 1998-2020 Red Hat. All Rights Reserved.