xmlBlaster 2.2.0 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
 StorageId getStorageId()
          Must be filled if retrieved from database.
 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, getMeat, getPriority, getRef, getSizeInBytes, getUniqueId, isPersistent, isStored, removed, setStored
 

Method Detail

isSwapped

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

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


getUniqueIdStr

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

getSortTimestamp

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


setSortTimestamp

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


getStorageId

StorageId getStorageId()
Must be filled if retrieved from database.

Returns:
can be null

xmlBlaster 2.2.0 API

Copyright © 1999-2014 The xmlBlaster.org contributers.