public interface PlatformMessage extends Cloneable, Serializable
MessageMetadata
returned by getMetadata()
.Modifier and Type | Field and Description |
---|---|
static long |
DEFAULT_MAX_LOG_LENGTH
the default maximum log line length
|
static String |
MESSAGE_DROPPED
a property name used to annotate messages for which the audit api is notified of the drop
|
static String |
MESSAGE_SEND_TIME_PROP
a property name used to annotate messages with their send time
|
static String |
PROP_MAX_LOG_LENGTH
Property name that controls the maximum length of the logging of a PlatformMessage.
|
Modifier and Type | Method and Description |
---|---|
void |
addMessageHistory(List<MessageHistory> historyList)
Adds items to this message's history.
|
void |
addMessageHistory(MessageHistory item)
Adds an item to this message's history.
|
PlatformMessage |
clone()
Clones a message.
|
UUID |
getClientId()
Gets the client to which this message belongs (may have originated with the client or be a response to the client).
|
long |
getEstimatedSize() |
List<MessageHistory> |
getMessageHistory()
Gets the list of components that have processed this message.
|
MessageId |
getMessageId()
Gets the message id associated with the message.
|
MessageMetadata |
getMetadata()
Gets the message metadata from this message.
|
Object |
getProperty(String key)
Gets an arbitrary property for the message.
|
WorkflowQueue |
getWorkflowQueue()
Gets the workflow queue.
|
WorkflowQueue |
getWorkflowQueue(boolean createIfNull)
Optionally creates a new empty queue if null.
|
boolean |
isRedelivered()
Returns true if the message (or its originating message) is re-delivered Redelivery is generally due to a failure and
subsequent recovery in a fault tolerant system.
|
void |
removeProperty(String key)
Removes a property from the message.
|
void |
setClientId(UUID clientId)
Sets the client to which this message belongs.
|
void |
setMessageId(MessageId id)
Sets the message id associated with the message.
|
void |
setProperty(String key,
Object value)
Sets an arbitrary property for the message.
|
void |
setRedelivered(boolean redelivered)
Sets the re-delivered flag.
|
void |
setWorkflowQueue(String... wfQueue)
Sets the workflow queue.
|
void |
setWorkflowQueue(WorkflowQueue wfQueue)
Sets the workflow queue.
|
String |
toMessageString()
Gets a string-based representation of the message containing string data only.
|
static final String PROP_MAX_LOG_LENGTH
static final long DEFAULT_MAX_LOG_LENGTH
static final String MESSAGE_SEND_TIME_PROP
static final String MESSAGE_DROPPED
void setProperty(String key, Object value)
key
- the keyvalue
- the valueObject getProperty(String key)
key
- the keyvoid removeProperty(String key)
key
- boolean isRedelivered()
void setRedelivered(boolean redelivered)
redelivered
- UUID getClientId()
void setClientId(UUID clientId)
clientId
- the client IDMessageId getMessageId()
void setMessageId(MessageId id)
id
- the message IDMessageMetadata getMetadata()
List<MessageHistory> getMessageHistory()
void addMessageHistory(MessageHistory item)
item
- the item to addvoid addMessageHistory(List<MessageHistory> historyList)
WorkflowQueue getWorkflowQueue()
WorkflowQueue getWorkflowQueue(boolean createIfNull)
createIfNull
- if true and the queue is not set, creates a new empty queuevoid setWorkflowQueue(WorkflowQueue wfQueue)
wfQueue
will be cloned.wfQueue
- the workflow queuevoid setWorkflowQueue(String... wfQueue)
wfQueue
will be cloned.wfQueue
- the list of workflowsString toMessageString()
PlatformMessage clone()
long getEstimatedSize()
Copyright © 2018 Attivio, Inc. All Rights Reserved.
PATENT NOTICE: Attivio, Inc. Software Related Patents. With respect to the Attivio software product(s) being used, the following patents apply: Querying Joined Data Within A Search Engine Index: United States Patent No.(s): 8,073,840. Ordered Processing of Groups of Messages: U.S. Patent No.(s) 8,495,656. Signal processing approach to sentiment analysis for entities in documents: U.S. Patent No.(s) 8,725,494. Other U.S. and International Patents Pending.