Interface BambooAgentMessageSender
- All Known Implementing Classes:
BatchedMessageSender
,JmsTemplateMessageSender
public interface BambooAgentMessageSender
An interface for sending BambooAgentMessage
s from an agent to the server.
-
Method Summary
Modifier and TypeMethodDescriptiondefault void
flush()
Flush outgoing messages.@Nullable Object
send
(@NotNull BambooAgentMessage message) Sends aBambooAgentMessage
, and any others that have been submitted but not yet sent, to the server immediately.void
submit
(@NotNull BambooAgentMessage message) Submits aBambooAgentMessage
to 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
- TheBambooAgentMessage
to send.
-
submit
Submits a
BambooAgentMessage
to be sent to the server when convenient.- Parameters:
message
- TheBambooAgentMessage
to submit.
-
flush
default void flush()Flush outgoing messages.- Since:
- 9.2
-