xmlBlaster 1.6.2 API

org.xmlBlaster.engine.msgstore
Interface I_MapEntry

All Superinterfaces:
I_Entry, java.io.Serializable
All Known Implementing Classes:
MsgUnitWrapper, SessionEntry, SubscribeEntry, TopicEntry

public interface I_MapEntry
extends I_Entry, java.io.Serializable


Method Summary
 Timestamp getSortTimestamp()
          Can be used by cache implementation to implement LRU
 java.lang.String getUniqueIdStr()
           
 boolean isSwapped()
          The cache sets it to true when the entry is swapped away.
 void isSwapped(boolean isSwapped)
          Used by the cache implementation to mark entries which will be swapped to the persistent store.
 void setSortTimestamp(Timestamp timstamp)
          Can be used by cache implementation to implement LRU
 
Methods inherited from interface org.xmlBlaster.util.queue.I_Entry
added, embeddedObjectToXml, getEmbeddedObject, getEmbeddedType, getLogId, getPriority, getSizeInBytes, getUniqueId, isPersistent, isStored, removed, setStored
 

Method Detail

isSwapped

public boolean isSwapped()
The cache sets it to true when the entry is swapped away. You should not write on a swapped away entry as those changes are lost. For 'ram' or 'jdbc' implementation this flag is not used and remains the initial value (set it to false in your implementation of I_MapEntry).


isSwapped

public void isSwapped(boolean isSwapped)
Used by the cache implementation to mark entries which will be swapped to the persistent store.


getUniqueIdStr

public java.lang.String getUniqueIdStr()
Returns:
The unique ID as a string (cached for performance)

getSortTimestamp

public Timestamp getSortTimestamp()
Can be used by cache implementation to implement LRU


setSortTimestamp

public void setSortTimestamp(Timestamp timstamp)
Can be used by cache implementation to implement LRU


xmlBlaster 1.6.2 API

Copyright © 1999-2007 The xmlBlaster.org contributers.