|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.bamboo.v2.build.agent.remote.sender.BatchedMessageSender
@ThreadSafe public class BatchedMessageSender
A sendder strategy that batches the messages up in a queue and periodically flushes the queu.
Constructor Summary | |
---|---|
BatchedMessageSender(BambooAgentMessageSender delegate)
|
|
BatchedMessageSender(BambooAgentMessageSender delegate,
long flushingDelay,
int maxQueueSize)
|
Method Summary | |
---|---|
void |
flush()
|
void |
send(BambooAgentMessage message)
Sends a BambooAgentMessage , and any others that have been submitted but not yet sent, to the server
immediately. |
void |
submit(BambooAgentMessage message)
Submits a BambooAgentMessage to be sent to the server when convenient. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BatchedMessageSender(BambooAgentMessageSender delegate)
public BatchedMessageSender(BambooAgentMessageSender delegate, long flushingDelay, int maxQueueSize)
Method Detail |
---|
public void send(@NotNull BambooAgentMessage message)
BambooAgentMessageSender
Sends a BambooAgentMessage
, and any others that have been submitted but not yet sent, to the server
immediately.
send
in interface BambooAgentMessageSender
message
- The BambooAgentMessage
to send.public void submit(@NotNull BambooAgentMessage message)
BambooAgentMessageSender
Submits a BambooAgentMessage
to be sent to the server when convenient.
submit
in interface BambooAgentMessageSender
message
- The BambooAgentMessage
to submit.public void flush()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |