|
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.util.queuemsg.MsgQueueEntry
org.xmlBlaster.client.queuemsg.MsgQueuePublishEntry
Wraps an publish() message into an entry for a sorted queue.
| Field Summary |
| Fields inherited from class org.xmlBlaster.util.queuemsg.MsgQueueEntry |
entryType, glob, persistent, priority, redeliverCounter, refToCloneOrigin, returnObj, storageId, uniqueIdString, uniqueIdTimestamp, wantReturnObj |
| Constructor Summary | |
MsgQueuePublishEntry(Global glob,
MethodName entryType,
PriorityEnum priority,
StorageId storageId,
Timestamp publishEntryTimestamp,
long sizeInBytes,
MsgUnit msgUnit)
For persistence recovery |
|
MsgQueuePublishEntry(Global glob,
MsgUnit msgUnit,
StorageId storageId)
Use this constructor if a new message object is fed by method publish() (not oneway). |
|
MsgQueuePublishEntry(Global glob,
MsgUnit msgUnit,
StorageId storageId,
boolean oneway)
|
|
| Method Summary | |
java.lang.Object |
clone()
Returns a shallow clone |
void |
embeddedObjectToXml(java.io.OutputStream out,
java.util.Properties props)
Dump content to xml representation |
java.lang.Object |
getEmbeddedObject()
The embedded object. |
java.lang.String |
getKeyOid()
|
MsgKeyData |
getMsgKeyData()
|
MsgUnit |
getMsgUnit()
Get the message unit, you must call getUpdateQos(int,int,int) before to generate the update QoS. |
SessionName |
getReceiver()
|
SessionName |
getSender()
Access the unique login name of the (last) publisher. |
long |
getSizeInBytes()
Try to find out the approximate memory consumption of this message. |
boolean |
isDestroyed()
Flag which marks the entry as destroyed, you should take it from queue and ignore/discard it |
boolean |
isExpired()
Flag which marks the entry as outdated |
boolean |
isInternal()
|
void |
setReceiver(SessionName receiver)
|
| Methods inherited from class org.xmlBlaster.util.queuemsg.MsgQueueEntry |
added, compare, equals, finalize, getEmbeddedType, getLogId, getMethodName, getPriority, getPriorityEnum, getRedeliverCounter, getReturnObj, getStorageId, getUniqueId, getUniqueIdLong, incrRedeliverCounter, isPersistent, isStored, removed, setGlobal, setPersistent, setReturnObj, setStored, setWantReturnObject, toString, toXml, toXml, wantReturnObj |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public MsgQueuePublishEntry(Global glob,
MsgUnit msgUnit,
StorageId storageId)
throws XmlBlasterException
msgUnit - The raw data
public MsgQueuePublishEntry(Global glob,
MsgUnit msgUnit,
StorageId storageId,
boolean oneway)
throws XmlBlasterException
public MsgQueuePublishEntry(Global glob,
MethodName entryType,
PriorityEnum priority,
StorageId storageId,
Timestamp publishEntryTimestamp,
long sizeInBytes,
MsgUnit msgUnit)
| Method Detail |
public boolean isExpired()
MsgQueueEntry
isExpired in class MsgQueueEntryMsgQueueEntry.isExpired()public boolean isDestroyed()
MsgQueueEntry
isDestroyed in class MsgQueueEntryMsgQueueEntry.isDestroyed()public MsgUnit getMsgUnit()
getMsgUnit in class MsgQueueEntrypublic long getSizeInBytes()
getSizeInBytes in interface I_EntrygetSizeInBytes in class MsgQueueEntrypublic boolean isInternal()
isInternal in class MsgQueueEntrypublic SessionName getSender()
getSender in class MsgQueueEntryMsgQueueEntry.getSender()public void setReceiver(SessionName receiver)
MsgQueueEntry.getReceiver()public SessionName getReceiver()
getReceiver in class MsgQueueEntryMsgQueueEntry.getReceiver()public MsgKeyData getMsgKeyData()
public java.lang.String getKeyOid()
getKeyOid in class MsgQueueEntryMsgQueueEntry.getKeyOid()public java.lang.Object getEmbeddedObject()
public final void embeddedObjectToXml(java.io.OutputStream out,
java.util.Properties props)
throws java.io.IOException
I_Entry
out - The stream to dump toprops - Control porperties
java.io.IOExceptionpublic java.lang.Object clone()
clone in class MsgQueueEntry
|
xmlBlaster 1.6.2 client API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||