public class JmsTemplateMessageSender extends Object implements BambooAgentMessageSender
Constructor and Description |
---|
JmsTemplateMessageSender() |
Modifier and Type | Method and Description |
---|---|
Object |
send(BambooAgentMessage bambooAgentMessage)
Sends a
BambooAgentMessage , and any others that have been submitted but not yet sent, to the server
immediately. |
void |
setJmsTemplate(org.springframework.jms.core.JmsTemplate jmsTemplate) |
void |
submit(BambooAgentMessage message)
Submits a
BambooAgentMessage to be sent to the server when convenient. |
@Nullable public Object send(@NotNull BambooAgentMessage bambooAgentMessage)
BambooAgentMessageSender
Sends a BambooAgentMessage
, and any others that have been submitted but not yet sent, to the server
immediately.
send
in interface BambooAgentMessageSender
bambooAgentMessage
- 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 setJmsTemplate(org.springframework.jms.core.JmsTemplate jmsTemplate)
Copyright © 2020 Atlassian Software Systems Pty Ltd. All rights reserved.