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 (
MleMarker
s) 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 void
addMleMarker(MleMarker event)
Adds aMleMarker
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 theseMleMarker
s are related.java.util.List<MleMarker>
getMleMarkers()
Returns theList
ofMleMarker
s.java.lang.String
getNameSpace()
Returns the immutable name space of thisEvent
.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 theseMleMarker
s are related.void
setMleMarkers(java.util.List<MleMarker> l)
Sets theList
ofMleMarker
s.void
setWorkflowId(java.lang.String s)
Set the id of workflow that is processing this message.java.lang.String
toString()
-
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 inEvent
and adds.fail
or.success
to the end of the original name space, based on callinggetWasSuccessful
on allMleMarker
s.- Overrides:
getNameSpace
in classEvent
- Returns:
- the namespace of this
Event
-
addMleMarker
public void addMleMarker(MleMarker event)
Adds a
MleMarker
to the end of the ordered internal store.- Parameters:
event
- theMleMarker
to add, may not be null
-
getMleMarkers
public java.util.List<MleMarker> getMleMarkers()
Returns the
List
ofMleMarker
s.- Returns:
- the
List
ofMleMarker
s
-
setMleMarkers
public void setMleMarkers(java.util.List<MleMarker> l)
Sets the
List
ofMleMarker
s.- Parameters:
l
- theList
ofMleMarker
s
-
setMessageUniqueId
public void setMessageUniqueId(java.lang.String uniqueId)
Sets the unique ID of the message to which these
MleMarker
s are related.- Parameters:
uniqueId
- the unique ID of the message to which theseMleMarker
s are related
-
getMessageUniqueId
public java.lang.String getMessageUniqueId()
Returns the unique ID of the message to which these
MleMarker
s are related.- Returns:
- the unique ID of the message to which these
MleMarker
s 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:
toString
in classjava.lang.Object
-
clone
public MessageLifecycleEvent clone() throws java.lang.CloneNotSupportedException
- Overrides:
clone
in classjava.lang.Object
- Throws:
java.lang.CloneNotSupportedException
-
-