Interface BambooAgentMessageSender
- All Known Implementing Classes:
BatchedMessageSender,JmsTemplateMessageSender
public interface BambooAgentMessageSender
An interface for sending BambooAgentMessages from an agent to the server.
-
Method Summary
Modifier and TypeMethodDescriptiondefault voidflush()Flush outgoing messages.@Nullable Objectsend(@NotNull BambooAgentMessage message) Sends aBambooAgentMessage, and any others that have been submitted but not yet sent, to the server immediately.voidsubmit(@NotNull BambooAgentMessage message) Submits aBambooAgentMessageto be sent to the server when convenient.
-
Method Details
-
send
Sends a
BambooAgentMessage, and any others that have been submitted but not yet sent, to the server immediately.- Parameters:
message- TheBambooAgentMessageto send.
-
submit
Submits a
BambooAgentMessageto be sent to the server when convenient.- Parameters:
message- TheBambooAgentMessageto submit.
-
flush
default void flush()Flush outgoing messages.- Since:
- 9.2
-