Package com.attivio.sdk.esb
Class AbstractListMessage<T>
- java.lang.Object
- 
- java.util.AbstractCollection<E>
- 
- java.util.AbstractList<E>
- 
- java.util.ArrayList<T>
- 
- com.attivio.sdk.esb.AbstractListMessage<T>
 
 
 
 
- 
- Type Parameters:
- T-
 - All Implemented Interfaces:
- PlatformMessage,- java.io.Serializable,- java.lang.Cloneable,- java.lang.Iterable<T>,- java.util.Collection<T>,- java.util.List<T>,- java.util.RandomAccess
 - Direct Known Subclasses:
- DocumentList,- MessageList
 
 public abstract class AbstractListMessage<T> extends java.util.ArrayList<T> implements PlatformMessage Abstract container for list based messages.- See Also:
- Serialized Form
 
- 
- 
Field Summary- 
Fields inherited from interface com.attivio.sdk.esb.PlatformMessageDEFAULT_MAX_LOG_LENGTH, MESSAGE_DROPPED, MESSAGE_SEND_TIME_PROP, PROP_MAX_LOG_LENGTH
 
- 
 - 
Constructor SummaryConstructors Constructor Description AbstractListMessage()Creates an empty list.AbstractListMessage(int size)Creates an empty list of a fixed size.
 - 
Method SummaryAll Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidaddMessageHistory(MessageHistory msg)Adds a message to the message history.voidaddMessageHistory(java.util.List<MessageHistory> historyList)Adds a list of history.AbstractListMessage<T>clone()Clones a message.protected abstract Tclone(T tmp)booleanequals(java.lang.Object other)java.util.UUIDgetClientId()Gets the client to which this message belongs (may have originated with the client or be a response to the client).longgetEstimatedSize()java.util.List<MessageHistory>getMessageHistory()Gets the list of components that have processed this message.MessageIdgetMessageId()Gets the message id associated with the message.MessageMetadatagetMetadata()Gets the message metadata from this message.java.lang.ObjectgetProperty(java.lang.String key)Gets an arbitrary property for the message.WorkflowQueuegetWorkflowQueue()Gets the workflow queue.WorkflowQueuegetWorkflowQueue(boolean createIfNull)Optionally creates a new empty queue if null.inthashCode()booleanisRedelivered()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.voidremoveProperty(java.lang.String key)Removes a property from the message.voidsetClientId(java.util.UUID clientId)Sets the client to which this message belongs.voidsetMessageId(MessageId msgId)Sets the message id associated with the message.voidsetProperty(java.lang.String key, java.lang.Object value)Sets an arbitrary property for the message.voidsetRedelivered(boolean redelivered)Sets the re-delivered flag.voidsetWorkflowQueue(WorkflowQueue workflowQueue)Sets the workflow queue.voidsetWorkflowQueue(java.lang.String... workflows)Sets the workflow queue.java.lang.StringtoMessageString()Gets a string-based representation of the message containing string data only.java.lang.StringtoString()java.lang.StringtoStringDetailed()- 
Methods inherited from class java.util.ArrayListadd, 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
 
- 
 
- 
- 
- 
Method Detail- 
getPropertypublic java.lang.Object getProperty(java.lang.String key) Gets an arbitrary property for the message. Some transformations of messages may result in the value being converted to a String.- Specified by:
- getPropertyin interface- PlatformMessage
- Parameters:
- key- the key
- Returns:
- property value
 
 - 
setPropertypublic void setProperty(java.lang.String key, java.lang.Object value)Sets an arbitrary property for the message. Some transformations of messages may result in the value being converted to a String.- Specified by:
- setPropertyin interface- PlatformMessage
- Parameters:
- key- the key
- value- the value
 
 - 
removePropertypublic void removeProperty(java.lang.String key) Removes a property from the message.- Specified by:
- removePropertyin interface- PlatformMessage
 
 - 
getClientIdpublic java.util.UUID getClientId() Gets the client to which this message belongs (may have originated with the client or be a response to the client).- Specified by:
- getClientIdin interface- PlatformMessage
- Returns:
- the client ID
 
 - 
setClientIdpublic void setClientId(java.util.UUID clientId) Sets the client to which this message belongs.- Specified by:
- setClientIdin interface- PlatformMessage
- Parameters:
- clientId- the client ID
 
 - 
getMessageIdpublic MessageId getMessageId() Gets the message id associated with the message. message ids are used for internal ordering guarantees and may change as the message propagates through the system.- Specified by:
- getMessageIdin interface- PlatformMessage
- Returns:
- the message ID
 
 - 
setMessageIdpublic void setMessageId(MessageId msgId) Sets the message id associated with the message.- Specified by:
- setMessageIdin interface- PlatformMessage
- Parameters:
- msgId- the message ID
 
 - 
getMetadatapublic MessageMetadata getMetadata() Gets the message metadata from this message.- Specified by:
- getMetadatain interface- PlatformMessage
- Returns:
- the message metadata
 
 - 
getMessageHistorypublic java.util.List<MessageHistory> getMessageHistory() Gets the list of components that have processed this message. The returned list is unmodifiable.- Specified by:
- getMessageHistoryin interface- PlatformMessage
- Returns:
- the message history
 
 - 
addMessageHistorypublic void addMessageHistory(MessageHistory msg) Adds a message to the message history.- Specified by:
- addMessageHistoryin interface- PlatformMessage
- Parameters:
- msg- the message to add
 
 - 
addMessageHistorypublic void addMessageHistory(java.util.List<MessageHistory> historyList) Adds a list of history.- Specified by:
- addMessageHistoryin interface- PlatformMessage
- Parameters:
- historyList-
 
 - 
getWorkflowQueuepublic WorkflowQueue getWorkflowQueue() Gets the workflow queue. Modifying the returned value will change the workflow destinations for the message.- Specified by:
- getWorkflowQueuein interface- PlatformMessage
- Returns:
- the workflow queue, may be null.
 
 - 
getWorkflowQueuepublic WorkflowQueue getWorkflowQueue(boolean createIfNull) Optionally creates a new empty queue if null. Modifying the returned value will change the workflow destinations for the message.- Specified by:
- getWorkflowQueuein interface- PlatformMessage
- Parameters:
- createIfNull- if true and the queue is not set, creates a new empty queue
- Returns:
- the workflow queue
 
 - 
setWorkflowQueuepublic void setWorkflowQueue(WorkflowQueue workflowQueue) Sets the workflow queue.wfQueuewill be cloned.- Specified by:
- setWorkflowQueuein interface- PlatformMessage
- Parameters:
- workflowQueue- the workflow queue
 
 - 
setWorkflowQueuepublic void setWorkflowQueue(java.lang.String... workflows) Sets the workflow queue.wfQueuewill be cloned.- Specified by:
- setWorkflowQueuein interface- PlatformMessage
- Parameters:
- workflows- the list of workflows
 
 - 
toStringpublic java.lang.String toString() - Overrides:
- toStringin class- java.util.AbstractCollection<T>
 
 - 
toStringDetailedpublic java.lang.String toStringDetailed() 
 - 
toMessageStringpublic java.lang.String toMessageString() Gets a string-based representation of the message containing string data only.- Specified by:
- toMessageStringin interface- PlatformMessage
- Returns:
- the message string
 
 - 
isRedeliveredpublic 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.- Specified by:
- isRedeliveredin interface- PlatformMessage
- Returns:
- true if the message is re-delivered
 
 - 
setRedeliveredpublic void setRedelivered(boolean redelivered) Sets the re-delivered flag.- Specified by:
- setRedeliveredin interface- PlatformMessage
 
 - 
hashCodepublic int hashCode() 
 - 
equalspublic boolean equals(java.lang.Object other) 
 - 
clonepublic AbstractListMessage<T> clone() Clones a message. The message ID is not cloned.- Specified by:
- clonein interface- PlatformMessage
- Overrides:
- clonein class- java.util.ArrayList<T>
- Returns:
- the cloned index message
 
 - 
getEstimatedSizepublic long getEstimatedSize() - Specified by:
- getEstimatedSizein interface- PlatformMessage
 
 
- 
 
-