public class MleMarker
extends java.lang.Object
implements java.lang.Cloneable, java.io.Serializable
Records information about activities (generally Service
implementations) performed on a AdaptrisMessage
during a
workflow.
MessageLifecycleEvent
,
Serialized FormIn the adapter configuration file this class is aliased as mle-marker which is the preferred alternative to the fully qualified classname when building your configuration.
Constructor and Description |
---|
MleMarker()
Creates a new instance.
|
MleMarker(MessageEventGenerator meg,
boolean success,
long seq,
java.lang.String uniqueId,
java.lang.String confirmationId) |
MleMarker(java.lang.String s,
boolean b,
long seq,
java.lang.String id)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
clone() |
boolean |
equals(java.lang.Object o) |
java.lang.String |
getConfirmationId()
Returns the optional confirmation ID.
|
long |
getCreationTime()
Get the creation time.
|
boolean |
getIsConfirmation()
Returns true if this is a confirmation otherwise false.
|
boolean |
getIsTrackingEndpoint() |
java.lang.String |
getName()
Returns the name of the 'event'.
|
java.lang.String |
getQualifier()
The qualifier for the event in question
|
long |
getSequenceNumber()
Get the sequence number for this marker.
|
java.lang.String |
getUniqueId()
Get the unique id.
|
boolean |
getWasSuccessful()
Return true if the named 'event' was successful, otherwise false.
|
int |
hashCode() |
void |
setConfirmationId(java.lang.String s)
Sets the optional confirmation ID.
|
void |
setCreationTime(long l)
Set the creation time for this marker.
|
void |
setIsConfirmation(boolean b)
Sets whether this is a confirmation (for the given confirmation id).
|
void |
setIsTrackingEndpoint(boolean b) |
void |
setName(java.lang.String s)
Set the name of this marker.
|
void |
setQualifier(java.lang.String qualifier) |
void |
setSequenceNumber(long i)
Set the sequence number for this event.
|
void |
setUniqueId(java.lang.String id)
Set the unique id for this marker.
|
void |
setWasSuccessful(boolean b)
Set whether the 'event' was successful or not.
|
java.lang.String |
toString() |
public MleMarker()
Creates a new instance.
public MleMarker(MessageEventGenerator meg, boolean success, long seq, java.lang.String uniqueId, java.lang.String confirmationId)
public MleMarker(java.lang.String s, boolean b, long seq, java.lang.String id)
Creates a new instance.
s
- the name of the 'event'b
- true if successfulseq
- the sequence numberid
- the Unique idpublic void setCreationTime(long l)
l
- the creation time.public long getCreationTime()
public void setName(java.lang.String s)
s
- the name of the marker, may not be nullMessageEventGenerator.createName()
public void setSequenceNumber(long i)
i
- the sequence numberpublic long getSequenceNumber()
public java.lang.String getName()
Returns the name of the 'event'.
public void setWasSuccessful(boolean b)
Set whether the 'event' was successful or not.
b
- true if the 'event' was successful.public boolean getWasSuccessful()
Return true if the named 'event' was successful, otherwise false.
public void setUniqueId(java.lang.String id)
id
- the unique id.public java.lang.String getUniqueId()
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
in class java.lang.Object
java.lang.CloneNotSupportedException
Object.clone()
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
Object.equals(java.lang.Object)
public int hashCode()
hashCode
in class java.lang.Object
public boolean getIsTrackingEndpoint()
public void setIsTrackingEndpoint(boolean b)
public java.lang.String getConfirmationId()
Returns the optional confirmation ID. If set this is used to set up a confirmation in tracking.
public void setConfirmationId(java.lang.String s)
Sets the optional confirmation ID. If set this is used to set up a confirmation in tracking.
s
- the optional confirmation IDpublic boolean getIsConfirmation()
Returns true if this is a confirmation otherwise false.
public void setIsConfirmation(boolean b)
Sets whether this is a confirmation (for the given confirmation id).
b
- this is a confirmation (for the given confirmation id)public java.lang.String getQualifier()
In most cases, the qualifier is the unique-id of the
MessageEventGenerator
that created this marker
public void setQualifier(java.lang.String qualifier)