T - public abstract class AbstractListMessage<T> extends ArrayList<T> implements PlatformMessage
modCountDEFAULT_MAX_LOG_LENGTH, MESSAGE_DROPPED, MESSAGE_SEND_TIME_PROP, PROP_MAX_LOG_LENGTH| Constructor and Description |
|---|
AbstractListMessage()
Creates an empty list.
|
AbstractListMessage(int size)
Creates an empty list of a fixed size.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addMessageHistory(List<MessageHistory> historyList)
Adds a list of history.
|
void |
addMessageHistory(MessageHistory msg)
Adds a message to the message history.
|
AbstractListMessage<T> |
clone()
Clones a message.
|
protected abstract T |
clone(T tmp) |
boolean |
equals(Object other) |
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.
|
int |
hashCode() |
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 msgId)
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... workflows)
Sets the workflow queue.
|
void |
setWorkflowQueue(WorkflowQueue workflowQueue)
Sets the workflow queue.
|
String |
toMessageString()
Gets a string-based representation of the message containing string data only.
|
String |
toString() |
String |
toStringDetailed() |
add, add, addAll, addAll, clear, contains, ensureCapacity, forEach, get, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeIf, removeRange, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, trimToSizecontainsAllfinalize, getClass, notify, notifyAll, wait, wait, waitcontainsAllparallelStream, streampublic AbstractListMessage()
public AbstractListMessage(int size)
public Object getProperty(String key)
getProperty in interface PlatformMessagekey - the keypublic void setProperty(String key, Object value)
setProperty in interface PlatformMessagekey - the keyvalue - the valuepublic void removeProperty(String key)
removeProperty in interface PlatformMessagepublic UUID getClientId()
getClientId in interface PlatformMessagepublic void setClientId(UUID clientId)
setClientId in interface PlatformMessageclientId - the client IDpublic MessageId getMessageId()
getMessageId in interface PlatformMessagepublic void setMessageId(MessageId msgId)
setMessageId in interface PlatformMessagemsgId - the message IDpublic MessageMetadata getMetadata()
getMetadata in interface PlatformMessagepublic List<MessageHistory> getMessageHistory()
getMessageHistory in interface PlatformMessagepublic void addMessageHistory(MessageHistory msg)
addMessageHistory in interface PlatformMessagemsg - the message to addpublic void addMessageHistory(List<MessageHistory> historyList)
addMessageHistory in interface PlatformMessagehistoryList - public WorkflowQueue getWorkflowQueue()
getWorkflowQueue in interface PlatformMessagepublic WorkflowQueue getWorkflowQueue(boolean createIfNull)
getWorkflowQueue in interface PlatformMessagecreateIfNull - if true and the queue is not set, creates a new empty queuepublic void setWorkflowQueue(WorkflowQueue workflowQueue)
wfQueue will be cloned.setWorkflowQueue in interface PlatformMessageworkflowQueue - the workflow queuepublic void setWorkflowQueue(String... workflows)
wfQueue will be cloned.setWorkflowQueue in interface PlatformMessageworkflows - the list of workflowspublic String toString()
toString in class AbstractCollection<T>public String toStringDetailed()
public String toMessageString()
toMessageString in interface PlatformMessagepublic boolean isRedelivered()
isRedelivered in interface PlatformMessagepublic void setRedelivered(boolean redelivered)
setRedelivered in interface PlatformMessagepublic int hashCode()
hashCode in interface Collection<T>hashCode in interface List<T>hashCode in class AbstractList<T>public boolean equals(Object other)
equals in interface Collection<T>equals in interface List<T>equals in class AbstractList<T>public AbstractListMessage<T> clone()
clone in interface PlatformMessageclone in class ArrayList<T>public long getEstimatedSize()
getEstimatedSize in interface PlatformMessageCopyright © 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.