@PublicApi
public interface MessageInformationService
Messages to a
queue. Once delivered, atlassian-messagequeue will retrieve from the queue and then dispatch to the
appropriate MessageRunner.
Normally MessageRunnerService.addMessage(Message)} would do all this for you, but sometimes you want an
external system (say a scheduling service) to take over the delivery aspect to a queue.
It is assumed that clients that compose messages from the information provided by this service have sufficient
privileges to deliver to the queue locatable via getQueueUrl(MessageRunnerKey))} (since this service does
not provide any credentials).
| Modifier and Type | Method and Description |
|---|---|
Message |
fromPayload(String payload)
Deserializes a
Message from the specified atlassian-messagequeue formatted payload. |
String |
getQueueUrl(MessageRunnerKey messageRunnerKey)
Returns the queue URL that atlassian-messagequeue is consuming from and producing to for the specified message
runner key.
|
String |
toPayload(Message message)
Serializes the specified message into an atlassian-messagequeue formatted payload.
|
String getQueueUrl(MessageRunnerKey messageRunnerKey)
messageRunnerKey - the message runner keyString toPayload(Message message)
message - the messageMessageSerializationException - if there is an error serializing the specified messageMessage fromPayload(String payload)
Message from the specified atlassian-messagequeue formatted payload.payload - the atlassian-messagequeue formatted payload (cannot be null or empty)MessageSerializationException - if there is an error deserializing the specified payloadCopyright © 2017 Atlassian. All rights reserved.