Class MleMarker
- java.lang.Object
-
- com.adaptris.core.MleMarker
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Cloneable
public class MleMarker extends java.lang.Object implements java.lang.Cloneable, java.io.SerializableRecords information about activities (generally
Serviceimplementations) performed on aAdaptrisMessageduring a workflow.- See Also:
MessageLifecycleEvent, Serialized Form
In 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 Summary
Constructors Constructor Description MleMarker()Creates a new instance.MleMarker(MessageEventGenerator meg, boolean success, long seq, java.lang.String uniqueId)MleMarker(java.lang.String s, boolean b, long seq, java.lang.String id)Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description java.lang.Objectclone()booleanequals(java.lang.Object o)java.lang.StringgetConfirmationId()Deprecated.since 3.6.2 sinceMessageEventGenerator#isConfirmation()is deprecatedlonggetCreationTime()Get the creation time.booleangetIsConfirmation()Deprecated.since 3.6.2 sinceMessageEventGenerator#isConfirmation()is deprecatedbooleangetIsTrackingEndpoint()java.lang.StringgetName()Returns the name of the 'event'.java.lang.StringgetQualifier()The qualifier for the event in questionlonggetSequenceNumber()Get the sequence number for this marker.java.lang.StringgetUniqueId()Get the unique id.booleangetWasSuccessful()Return true if the named 'event' was successful, otherwise false.inthashCode()voidsetConfirmationId(java.lang.String s)Deprecated.since 3.6.2 sinceMessageEventGenerator#isConfirmation()is deprecatedvoidsetCreationTime(long l)Set the creation time for this marker.voidsetIsConfirmation(boolean b)Deprecated.since 3.6.2 sinceMessageEventGenerator#isConfirmation()is deprecatedvoidsetIsTrackingEndpoint(boolean b)voidsetName(java.lang.String s)Set the name of this marker.voidsetQualifier(java.lang.String qualifier)voidsetSequenceNumber(long i)Set the sequence number for this event.voidsetUniqueId(java.lang.String id)Set the unique id for this marker.voidsetWasSuccessful(boolean b)Set whether the 'event' was successful or not.java.lang.StringtoString()
-
-
-
Constructor Detail
-
MleMarker
public MleMarker()
Creates a new instance.
-
MleMarker
public MleMarker(MessageEventGenerator meg, boolean success, long seq, java.lang.String uniqueId)
-
MleMarker
public MleMarker(java.lang.String s, boolean b, long seq, java.lang.String id)Creates a new instance.
- Parameters:
s- the name of the 'event'b- true if successfulseq- the sequence numberid- the Unique id
-
-
Method Detail
-
setCreationTime
public void setCreationTime(long l)
Set the creation time for this marker.- Parameters:
l- the creation time.
-
getCreationTime
public long getCreationTime()
Get the creation time.- Returns:
- the creation time.
-
setName
public void setName(java.lang.String s)
Set the name of this marker.- Parameters:
s- the name of the marker, may not be null- See Also:
MessageEventGenerator.createName()
-
setSequenceNumber
public void setSequenceNumber(long i)
Set the sequence number for this event.- Parameters:
i- the sequence number
-
getSequenceNumber
public long getSequenceNumber()
Get the sequence number for this marker.- Returns:
- the sequence number.
-
getName
public java.lang.String getName()
Returns the name of the 'event'.
- Returns:
- the name of the 'event'
-
setWasSuccessful
public void setWasSuccessful(boolean b)
Set whether the 'event' was successful or not.
- Parameters:
b- true if the 'event' was successful.
-
getWasSuccessful
public boolean getWasSuccessful()
Return true if the named 'event' was successful, otherwise false.
- Returns:
- true if the named 'event' was successful, otherwise false
-
setUniqueId
public void setUniqueId(java.lang.String id)
Set the unique id for this marker.- Parameters:
id- the unique id.
-
getUniqueId
public java.lang.String getUniqueId()
Get the unique id.- Returns:
- the uniqueid.
-
clone
public java.lang.Object clone() throws java.lang.CloneNotSupportedException- Overrides:
clonein classjava.lang.Object- Throws:
java.lang.CloneNotSupportedException- See Also:
Object.clone()
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object- See Also:
Object.equals(java.lang.Object)
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
getIsTrackingEndpoint
public boolean getIsTrackingEndpoint()
-
setIsTrackingEndpoint
public void setIsTrackingEndpoint(boolean b)
-
getConfirmationId
@Deprecated public java.lang.String getConfirmationId()
Deprecated.since 3.6.2 sinceMessageEventGenerator#isConfirmation()is deprecatedReturns the optional confirmation ID. If set this is used to set up a confirmation in tracking.
- Returns:
- the optional confirmation ID
-
setConfirmationId
@Deprecated public void setConfirmationId(java.lang.String s)
Deprecated.since 3.6.2 sinceMessageEventGenerator#isConfirmation()is deprecatedSets the optional confirmation ID. If set this is used to set up a confirmation in tracking.
- Parameters:
s- the optional confirmation ID
-
getIsConfirmation
@Deprecated public boolean getIsConfirmation()
Deprecated.since 3.6.2 sinceMessageEventGenerator#isConfirmation()is deprecatedReturns true if this is a confirmation otherwise false.
- Returns:
- true if this is a confirmation otherwise false.
-
setIsConfirmation
@Deprecated public void setIsConfirmation(boolean b)
Deprecated.since 3.6.2 sinceMessageEventGenerator#isConfirmation()is deprecatedSets whether this is a confirmation (for the given confirmation id).
- Parameters:
b- this is a confirmation (for the given confirmation id)
-
getQualifier
public java.lang.String getQualifier()
The qualifier for the event in questionIn most cases, the qualifier is the unique-id of the
MessageEventGeneratorthat created this marker- Returns:
- the qualifier
-
setQualifier
public void setQualifier(java.lang.String qualifier)
-
-