Class MessageLifecycleEvent
- java.lang.Object
-
- com.adaptris.core.Event
-
- com.adaptris.core.MessageLifecycleEvent
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Cloneable
public class MessageLifecycleEvent extends Event implements java.lang.Cloneable, java.io.Serializable
Container for message lifecycle events (
MleMarkers) for implementations ofAdaptrisMessage.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.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description MessageLifecycleEvent()Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddMleMarker(MleMarker event)Adds aMleMarkerto the end of the ordered internal store.MessageLifecycleEventclone()java.lang.StringgetChannelId()Get the id of the channel that started processing this message.java.lang.StringgetMessageUniqueId()Returns the unique ID of the message to which theseMleMarkers are related.java.util.List<MleMarker>getMleMarkers()Returns theListofMleMarkers.java.lang.StringgetNameSpace()Returns the immutable name space of thisEvent.java.lang.StringgetWorkflowId()Get the id of the workflow that is processing this message.voidsetChannelId(java.lang.String s)Set the id of the channel that is processing this message.voidsetMessageUniqueId(java.lang.String uniqueId)Sets the unique ID of the message to which theseMleMarkers are related.voidsetMleMarkers(java.util.List<MleMarker> l)Sets theListofMleMarkers.voidsetWorkflowId(java.lang.String s)Set the id of workflow that is processing this message.java.lang.StringtoString()-
Methods inherited from class com.adaptris.core.Event
createNameSpace, getCreationTime, getDestinationId, getSourceId, getUniqueId, setCreationTime, setDestinationId, setSourceId, setUniqueId
-
-
-
-
Method Detail
-
getNameSpace
public java.lang.String getNameSpace()
Returns the immutable name space of this
Event. Over-rides implementation inEventand adds.failor.successto the end of the original name space, based on callinggetWasSuccessfulon allMleMarkers.- Overrides:
getNameSpacein classEvent- Returns:
- the namespace of this
Event
-
addMleMarker
public void addMleMarker(MleMarker event)
Adds a
MleMarkerto the end of the ordered internal store.- Parameters:
event- theMleMarkerto add, may not be null
-
getMleMarkers
public java.util.List<MleMarker> getMleMarkers()
Returns the
ListofMleMarkers.- Returns:
- the
ListofMleMarkers
-
setMleMarkers
public void setMleMarkers(java.util.List<MleMarker> l)
Sets the
ListofMleMarkers.- Parameters:
l- theListofMleMarkers
-
setMessageUniqueId
public void setMessageUniqueId(java.lang.String uniqueId)
Sets the unique ID of the message to which these
MleMarkers are related.- Parameters:
uniqueId- the unique ID of the message to which theseMleMarkers are related
-
getMessageUniqueId
public java.lang.String getMessageUniqueId()
Returns the unique ID of the message to which these
MleMarkers are related.- Returns:
- the unique ID of the message to which these
MleMarkers are related.
-
getChannelId
public java.lang.String getChannelId()
Get the id of the channel that started processing this message.- Returns:
- the channel id.
-
setChannelId
public void setChannelId(java.lang.String s)
Set the id of the channel that is processing this message.- Parameters:
s- the channel id
-
setWorkflowId
public void setWorkflowId(java.lang.String s)
Set the id of workflow that is processing this message.- Parameters:
s- the workflow id.
-
getWorkflowId
public java.lang.String getWorkflowId()
Get the id of the workflow that is processing this message.- Returns:
- the workflow id.
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
clone
public MessageLifecycleEvent clone() throws java.lang.CloneNotSupportedException
- Overrides:
clonein classjava.lang.Object- Throws:
java.lang.CloneNotSupportedException
-
-