@ThreadSafe public class BatchedMessageSender extends Object implements BambooAgentMessageSender
Constructor and Description |
---|
BatchedMessageSender(BambooAgentMessageSender delegate,
HomeDirectoryLayout homeDirectoryLayout,
ObjectSerialiserDispatcher objectSerialiserDispatcher) |
Modifier and Type | Method and Description |
---|---|
void |
flush() |
Object |
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. |
public BatchedMessageSender(BambooAgentMessageSender delegate, HomeDirectoryLayout homeDirectoryLayout, ObjectSerialiserDispatcher objectSerialiserDispatcher)
@Nullable public Object 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()
Copyright © 2021 Atlassian Software Systems Pty Ltd. All rights reserved.