protected class TP.TransferQueueBundler extends TP.BaseBundler implements java.lang.Runnable
| 限定符和类型 | 字段和说明 |
|---|---|
protected java.lang.Thread |
bundler_thread |
protected java.util.concurrent.BlockingQueue<Message> |
queue |
protected static java.lang.String |
THREAD_NAME |
protected int |
threshold |
| 限定符 | 构造器和说明 |
|---|---|
protected |
TP.TransferQueueBundler(int capacity) |
| 限定符和类型 | 方法和说明 |
|---|---|
int |
getBufferSize() |
java.lang.Thread |
getThread() |
void |
run() |
void |
send(Message msg) |
void |
start() |
void |
stop() |
addMessage, checkLength, numMessages, sendBundledMessages, sendMessageList, sendSingleMessageprotected final int threshold
protected final java.util.concurrent.BlockingQueue<Message> queue
protected volatile java.lang.Thread bundler_thread
protected static final java.lang.String THREAD_NAME
public java.lang.Thread getThread()
public int getBufferSize()
public void start()
start 在接口中 TP.Bundlerstart 在类中 TP.BaseBundlerpublic void stop()
stop 在接口中 TP.Bundlerstop 在类中 TP.BaseBundlerpublic void send(Message msg) throws java.lang.Exception
send 在接口中 TP.Bundlersend 在类中 TP.BaseBundlerjava.lang.Exceptionpublic void run()
run 在接口中 java.lang.Runnable