T
- public abstract class AbstractListMessage<T> extends ArrayList<T> implements PlatformMessage
modCount
DEFAULT_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, trimToSize
containsAll
finalize, getClass, notify, notifyAll, wait, wait, wait
containsAll
parallelStream, stream
public AbstractListMessage()
public AbstractListMessage(int size)
public Object getProperty(String key)
getProperty
in interface PlatformMessage
key
- the keypublic void setProperty(String key, Object value)
setProperty
in interface PlatformMessage
key
- the keyvalue
- the valuepublic void removeProperty(String key)
removeProperty
in interface PlatformMessage
public UUID getClientId()
getClientId
in interface PlatformMessage
public void setClientId(UUID clientId)
setClientId
in interface PlatformMessage
clientId
- the client IDpublic MessageId getMessageId()
getMessageId
in interface PlatformMessage
public void setMessageId(MessageId msgId)
setMessageId
in interface PlatformMessage
msgId
- the message IDpublic MessageMetadata getMetadata()
getMetadata
in interface PlatformMessage
public List<MessageHistory> getMessageHistory()
getMessageHistory
in interface PlatformMessage
public void addMessageHistory(MessageHistory msg)
addMessageHistory
in interface PlatformMessage
msg
- the message to addpublic void addMessageHistory(List<MessageHistory> historyList)
addMessageHistory
in interface PlatformMessage
historyList
- public WorkflowQueue getWorkflowQueue()
getWorkflowQueue
in interface PlatformMessage
public WorkflowQueue getWorkflowQueue(boolean createIfNull)
getWorkflowQueue
in interface PlatformMessage
createIfNull
- if true and the queue is not set, creates a new empty queuepublic void setWorkflowQueue(WorkflowQueue workflowQueue)
wfQueue
will be cloned.setWorkflowQueue
in interface PlatformMessage
workflowQueue
- the workflow queuepublic void setWorkflowQueue(String... workflows)
wfQueue
will be cloned.setWorkflowQueue
in interface PlatformMessage
workflows
- the list of workflowspublic String toString()
toString
in class AbstractCollection<T>
public String toStringDetailed()
public String toMessageString()
toMessageString
in interface PlatformMessage
public boolean isRedelivered()
isRedelivered
in interface PlatformMessage
public void setRedelivered(boolean redelivered)
setRedelivered
in interface PlatformMessage
public 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 PlatformMessage
clone
in class ArrayList<T>
public long getEstimatedSize()
getEstimatedSize
in interface PlatformMessage
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.