com.isti.util
Class IstiMessageCachedArchive.BasicArchivableMsgObjEntry
java.lang.Object
com.isti.util.IstiTimeObjectCache.BasicTimeObjectEntry
com.isti.util.IstiMessageObjectCache.BasicMessageObjectEntry
com.isti.util.IstiMessageCachedArchive.BasicArchivableMsgObjEntry
- All Implemented Interfaces:
- Archivable, IstiMessageCachedArchive.ArchivableMsgObjEntry, IstiMessageObjectCache.MessageObjectEntry, IstiTimeObjectCache.TimeObjectEntry
- Enclosing class:
- IstiMessageCachedArchive
public abstract static class IstiMessageCachedArchive.BasicArchivableMsgObjEntry
- extends IstiMessageObjectCache.BasicMessageObjectEntry
- implements IstiMessageCachedArchive.ArchivableMsgObjEntry
Abstract class BasicArchivableMsgObjEntry is an extension of the message-
object-entry class that also implements the 'Archivable' interface.
This class should be extended to include an Archivable-interface-
compatible constructor and a 'toArchivedForm()' method. The 'equals()'
method should also be implemented.
Method Summary |
java.util.Date |
getArchiveDate()
Returns a 'Date' object representing the date to be used for archival
purposes. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IstiMessageCachedArchive.BasicArchivableMsgObjEntry
public IstiMessageCachedArchive.BasicArchivableMsgObjEntry(long timeGenerated,
java.lang.Object msgObj,
java.lang.String msgStr,
long msgNum)
- Creates a message object entry.
- Parameters:
timeGenerated
- the time the message was generated.msgObj
- message object.msgStr
- message string (used as a key into the cache-table).msgNum
- message number.
IstiMessageCachedArchive.BasicArchivableMsgObjEntry
protected IstiMessageCachedArchive.BasicArchivableMsgObjEntry()
- No-argument constructor for subclasses.
getArchiveDate
public java.util.Date getArchiveDate()
- Returns a 'Date' object representing the date to be used for archival
purposes.
- Specified by:
getArchiveDate
in interface Archivable
- Returns:
- A 'Date' object representing the date that the item should be
archived under.