|
xmlBlaster 1.6.2 client API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.xmlBlaster.client.queuemsg.ClientEntryFactory
The implementation of the interface which can be used to convert an object which implements the interface I_Entry to an Object and back. This is useful for example if you want to store such entries in persistent storage like a database or a file system. It might however be used even for other purposes.
| Constructor Summary | |
ClientEntryFactory()
|
|
| Method Summary | |
I_Entry |
createEntry(int priority,
long timestamp,
java.lang.String type,
boolean persistent,
long sizeInBytes,
java.io.InputStream is,
StorageId storageId)
Parses back the raw data to a I_Entry (deserializing) |
java.lang.Object |
getProperties()
Access the current Parser configuration |
void |
initialize(Global glob)
Is called after the instance is created. |
void |
setProperties(java.lang.Object userData)
Allows to overwrite properties which where passed on initialize() The properties which support hot configuration are depending on the used implementation |
byte[] |
toBlob(I_Entry entry)
Parses the specified entry to a byte array (serializing). |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ClientEntryFactory()
| Method Detail |
public byte[] toBlob(I_Entry entry)
throws XmlBlasterException
toBlob in interface I_EntryFactoryXmlBlasterException
public I_Entry createEntry(int priority,
long timestamp,
java.lang.String type,
boolean persistent,
long sizeInBytes,
java.io.InputStream is,
StorageId storageId)
throws XmlBlasterException
createEntry in interface I_EntryFactorytype - see ENTRY_TYPE_MSG etc.priority - The priority of the entry (the queues first sort criteria)timestamp - The queues second sort criteriapersistent - true: the entry is persistent, false: the entry is swapped from cache (no more RAM memory)sizeInBytes - The approximate, immutable size that the entry occupies in RAM,
this can be totally different
to the size the entry occupies on storagestorageId - A unique identifier of the queue
XmlBlasterExceptionpublic void initialize(Global glob)
initialize in interface I_EntryFactorypublic void setProperties(java.lang.Object userData)
setProperties in interface I_EntryFactorypublic java.lang.Object getProperties()
getProperties in interface I_EntryFactory
|
xmlBlaster 1.6.2 client API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||