public class DefaultMessageInformationService extends Object implements MessageInformationService
| Constructor and Description |
|---|
DefaultMessageInformationService(String queueUrl,
com.atlassian.tenant.api.TenantContextProvider tenantContextProvider,
NestedMessageSerializer nestedMessageSerializer,
TenantDataIdSupplier tenantDataIdSupplier) |
| 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.
|
public DefaultMessageInformationService(String queueUrl, com.atlassian.tenant.api.TenantContextProvider tenantContextProvider, NestedMessageSerializer nestedMessageSerializer, TenantDataIdSupplier tenantDataIdSupplier)
queueUrl - The URL that atlassian-messagequeue will be producing to and consuming from.tenantContextProvider - the tenant context providernestedMessageSerializer - the nested message serializertenantDataIdSupplier - the tenant data id supplierpublic String getQueueUrl(MessageRunnerKey messageRunnerKey)
MessageInformationServicegetQueueUrl in interface MessageInformationServicemessageRunnerKey - the message runner keypublic String toPayload(Message message)
MessageInformationServicetoPayload in interface MessageInformationServicemessage - the messagepublic Message fromPayload(String payload)
MessageInformationServiceMessage from the specified atlassian-messagequeue formatted payload.fromPayload in interface MessageInformationServicepayload - the atlassian-messagequeue formatted payload (cannot be null or empty)Copyright © 2017 Atlassian. All rights reserved.