public class PubSubMessage extends Object implements IPubSubMessage
PAYLOAD_TYPE_ATTRIBUTE, TENANT_ID_ATTRIBUTE| Constructor and Description |
|---|
PubSubMessage(String payload,
ITraceContext traceContext,
Map<String,String> attributes)
Constructor.
|
PubSubMessage(String payload,
ITraceContext traceContext,
String payloadType)
Constructor.
|
PubSubMessage(String payload,
ITraceContext traceContext,
String payloadType,
String tenantId)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Map<String,String> |
getAttributes() |
String |
getPayload() |
ITraceContext |
getTraceContext() |
public PubSubMessage(String payload, ITraceContext traceContext, String payloadType)
payload - The payloadtraceContext - A trace contextpayloadType - The payload type attributepublic PubSubMessage(String payload, ITraceContext traceContext, String payloadType, String tenantId)
payload - The payloadtraceContext - A trace contextpayloadType - The payload type attributetenantId - public PubSubMessage(String payload, ITraceContext traceContext, Map<String,String> attributes)
payload - The payloadtraceContext - A trace contextattributes - Message attributespublic String getPayload()
getPayload in interface IPubSubMessage@Nonnull public Map<String,String> getAttributes()
getAttributes in interface IPubSubMessagepublic ITraceContext getTraceContext()
getTraceContext in interface IPubSubMessageCopyright © 2018 Symphony Software Foundation. All rights reserved.