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, sendSingleMessage
protected 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.Bundler
start
在类中 TP.BaseBundler
public void stop()
stop
在接口中 TP.Bundler
stop
在类中 TP.BaseBundler
public void send(Message msg) throws java.lang.Exception
send
在接口中 TP.Bundler
send
在类中 TP.BaseBundler
java.lang.Exception
public void run()
run
在接口中 java.lang.Runnable