public class MessageLifecycleEvent extends Event implements java.lang.Cloneable, java.io.Serializable
Container for message lifecycle events (MleMarker
s)
for implementations of AdaptrisMessage
.
In the adapter configuration file this class is aliased as message-lifecycle-event which is the preferred alternative to the fully qualified classname when building your configuration.
Constructor and Description |
---|
MessageLifecycleEvent()
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
void |
addMleMarker(MleMarker event)
Adds a
MleMarker to the end of the ordered internal store. |
MessageLifecycleEvent |
clone() |
java.lang.String |
getChannelId()
Get the id of the channel that started processing this message.
|
java.lang.String |
getMessageUniqueId()
Returns the unique ID of the message to which these
MleMarker s
are related. |
java.util.List<MleMarker> |
getMleMarkers()
Returns the
List of MleMarker s. |
java.lang.String |
getNameSpace()
Returns the immutable name space of this
Event . |
java.lang.String |
getWorkflowId()
Get the id of the workflow that is processing this message.
|
void |
setChannelId(java.lang.String s)
Set the id of the channel that is processing this message.
|
void |
setMessageUniqueId(java.lang.String uniqueId)
Sets the unique ID of the message to which these
MleMarker s
are related. |
void |
setMleMarkers(java.util.List<MleMarker> l)
Sets the
List of MleMarker s. |
void |
setWorkflowId(java.lang.String s)
Set the id of workflow that is processing this message.
|
java.lang.String |
toString() |
createNameSpace, getCreationTime, getDestinationId, getSourceId, getUniqueId, setCreationTime, setDestinationId, setSourceId, setUniqueId
public java.lang.String getNameSpace()
Returns the immutable name space of this Event
. Over-rides
implementation in Event
and adds .fail
or
.success
to the end of the original name space, based on
calling getWasSuccessful
on all MleMarker
s.
getNameSpace
in class Event
Event
public void addMleMarker(MleMarker event)
Adds a MleMarker
to the end of the ordered internal store.
event
- the MleMarker
to add, may not be nullpublic java.util.List<MleMarker> getMleMarkers()
Returns the List
of MleMarker
s.
List
of MleMarker
spublic void setMleMarkers(java.util.List<MleMarker> l)
Sets the List
of MleMarker
s.
l
- the List
of MleMarker
spublic void setMessageUniqueId(java.lang.String uniqueId)
Sets the unique ID of the message to which these MleMarker
s
are related.
uniqueId
- the unique ID of the message to which these
MleMarker
s are relatedpublic java.lang.String getMessageUniqueId()
Returns the unique ID of the message to which these MleMarker
s
are related.
MleMarker
s
are related.public java.lang.String getChannelId()
public void setChannelId(java.lang.String s)
s
- the channel idpublic void setWorkflowId(java.lang.String s)
s
- the workflow id.public java.lang.String getWorkflowId()
public java.lang.String toString()
toString
in class java.lang.Object
public MessageLifecycleEvent clone() throws java.lang.CloneNotSupportedException
clone
in class java.lang.Object
java.lang.CloneNotSupportedException