systemic.sif.sifcommon.model
Class BaseMessage

java.lang.Object
  extended by systemic.sif.sifcommon.model.BaseMessage
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
SubscriberMessage

public class BaseMessage
extends java.lang.Object
implements java.io.Serializable

This class is primarily used as a base class for any messages that ought to be used in a SubscriberQueue. It has properties that might be needed if persistence is implemented in the SubscriberQueue.

Author:
Joerg Huber
See Also:
SubscriberQueue, Serialized Form

Constructor Summary
BaseMessage()
          This constructor will create this object with the creation date set to now.
BaseMessage(boolean autoGenerate)
          This constructor will create this object with a generated GUID if autoGenerate=TRUE otherwise no GUID is assigned at this point.
BaseMessage(java.lang.String messageGUID)
          This constructor will create this object with the given messageGUID.
 
Method Summary
 java.util.Date getCreationDate()
           
 java.lang.String getMessageGUID()
           
 int getNumRetries()
           
 void setCreationDate(java.util.Date creationDate)
           
 void setMessageGUID(java.lang.String messageGUID)
           
 void setNumRetries(int numRetries)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BaseMessage

public BaseMessage()
This constructor will create this object with the creation date set to now.


BaseMessage

public BaseMessage(boolean autoGenerate)
This constructor will create this object with a generated GUID if autoGenerate=TRUE otherwise no GUID is assigned at this point. The creation date will be set to now.

Parameters:
autoGenerate - TRUE=>A GUID will be assigned to the object.

BaseMessage

public BaseMessage(java.lang.String messageGUID)
This constructor will create this object with the given messageGUID. The creation date will be set to now.

Parameters:
messageGUID - Sets the messageGUID of this object to that value.
Method Detail

getMessageGUID

public java.lang.String getMessageGUID()

setMessageGUID

public void setMessageGUID(java.lang.String messageGUID)

getCreationDate

public java.util.Date getCreationDate()

setCreationDate

public void setCreationDate(java.util.Date creationDate)

getNumRetries

public int getNumRetries()

setNumRetries

public void setNumRetries(int numRetries)