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
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default 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 Detail
-
send
@Nullable @Nullable Object send(@NotNull @NotNull BambooAgentMessage message)
Sends a
BambooAgentMessage
, and any others that have been submitted but not yet sent, to the server immediately.- Parameters:
message
- TheBambooAgentMessage
to send.
-
submit
void submit(@NotNull @NotNull BambooAgentMessage message)
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
-
-