|
xmlBlaster 1.6.2 API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
| 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. |
int |
getPriority()
Allows to query the priority of this entry. |
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 |
public int getPriority()
public boolean isPersistent()
public long getUniqueId()
public java.lang.Object getEmbeddedObject()
public java.lang.String getEmbeddedType()
public java.lang.String getLogId()
See the derived class for a syntax description.
public long getSizeInBytes()
public 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!
public 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 idpublic void 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.public boolean isStored()
public 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
|
xmlBlaster 1.6.2 API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||