|
xmlBlaster 2.2.0 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface I_Entry
Method Summary | |
---|---|
void |
added(StorageId storageId)
Notification if this entry is added to storage. |
void |
embeddedObjectToXml(java.io.OutputStream out,
java.util.Properties props)
Dump content to xml representation |
java.lang.Object |
getEmbeddedObject()
gets the content of this queue entry (the embedded object). |
java.lang.String |
getEmbeddedType()
Gets the type of the object embedded in this entry, how the object is serialized. |
java.lang.String |
getLogId()
Return a human readable identifier for logging output. |
XBMeat |
getMeat()
|
int |
getPriority()
Allows to query the priority of this entry. |
XBRef |
getRef()
|
long |
getSizeInBytes()
returns the size in bytes of this entry. |
long |
getUniqueId()
This is the second order criteria in the queue |
boolean |
isPersistent()
Returns true if the entry is persistent (persistent on HD), false otherwise. |
boolean |
isStored()
|
void |
removed(StorageId storageId)
Notification if this entry is removed from storage |
void |
setStored(boolean stored)
Is invoked by the storage implementation with 'true' when the entry is put in a storage and with 'false' when the entry is removed from the storage. |
Method Detail |
---|
int getPriority()
boolean isPersistent()
long getUniqueId()
java.lang.Object getEmbeddedObject()
java.lang.String getEmbeddedType()
java.lang.String getLogId()
See the derived class for a syntax description.
long getSizeInBytes()
void added(StorageId storageId)
NOTE: This event is NOT triggered on startup if entries come from harddisk from the last run. It is NOT triggered during swapping.
This callback may or may not be called from within the queue specific synchronized block
NOTE: This callback is currently only implemented for I_Queue, but not for I_Map!
void removed(StorageId storageId)
NOTE: This event is NOT triggered during swapping.
The callback is guaranteed to be NEVER called from inside a queue specific synchronized block.
NOTE: This callback is currently only implemented for I_Queue, but not for I_Map!
storageId
- The storage idvoid setStored(boolean stored)
Note that this callback is guaranteed to be called from within the queue specific synchronized block
Todo: Remove this in favour of added()/removed() (isStored() is currently only used by CacheQueueInterceptorPlugin.java) I'm not sure if this usage relies on being inside syncThis method may never throw any exception
stored
- 'true' if the entry will be put into the storage, 'false' if it is removed.boolean isStored()
void embeddedObjectToXml(java.io.OutputStream out, java.util.Properties props) throws java.io.IOException
out
- The stream to dump toprops
- Control porperties
java.io.IOException
XBMeat getMeat() throws XmlBlasterException
XmlBlasterException
XBRef getRef()
|
xmlBlaster 2.2.0 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |