|
xmlBlaster 1.6.2 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.engine.queuemsg.ReferenceEntry
org.xmlBlaster.engine.queuemsg.MsgQueueHistoryEntry
Wraps an publish() message into an entry for a sorted queue.
| Field Summary | |
private boolean |
forceDestroy
|
private static java.util.logging.Logger |
log
|
private static java.lang.String |
ME
|
private static long |
serialVersionUID
|
| Fields inherited from class org.xmlBlaster.engine.queuemsg.ReferenceEntry |
glob, keyOid, msgUnitWrapperUniqueId, receiver, STRICT_REFERENCE_COUNTING, STRICT_REFERENCE_COUNTING_COMPATIBLE |
| Fields inherited from class org.xmlBlaster.util.queuemsg.MsgQueueEntry |
entryType, persistent, priority, redeliverCounter, refToCloneOrigin, returnObj, storageId, uniqueIdString, uniqueIdTimestamp, wantReturnObj |
| Constructor Summary | |
MsgQueueHistoryEntry(ServerScope glob,
MsgUnitWrapper msgUnitWrapper,
StorageId storageId)
A new message object is fed by method publish(). |
|
MsgQueueHistoryEntry(ServerScope glob,
PriorityEnum priority,
StorageId storageId,
Timestamp entryTimestamp,
java.lang.String keyOid,
long msgUnitWrapperUniqueId,
boolean persistent,
long sizeInBytes)
For persistence recovery |
|
| Method Summary | |
java.lang.Object |
clone()
Returns a shallow clone |
int |
getPriority()
Enforced by I_QueueEntry |
long |
getSizeInBytes()
Try to find out the approximate memory consumption of this message in RAM. |
long |
getUniqueId()
The negative unique creation timestamp (unique in a Global of a virtual machine) Enforced by I_QueueEntry |
java.lang.Long |
getUniqueIdLong()
The negative unique creation timestamp (unique in a Global of a virtual machine) |
protected boolean |
isForceDestroy()
TODO: Save this state in persistency and recover it similar to MsgQueueUpdateEntry Is needed to know if missing meat is an error |
| Methods inherited from class org.xmlBlaster.engine.queuemsg.ReferenceEntry |
added, embeddedObjectToXml, getEmbeddedObject, getGlobal, getKeyOid, getMsgKeyData, getMsgQosData, getMsgUnit, getMsgUnitOrNull, getMsgUnitWrapper, getMsgUnitWrapperUniqueId, getRcvTimestamp, getReceiver, getSender, isDestroyed, isExpired, isInternal, removed, setMsgUnitWrapper, setReceiver |
| Methods inherited from class org.xmlBlaster.util.queuemsg.MsgQueueEntry |
compare, equals, finalize, getEmbeddedType, getLogId, getMethodName, getPriorityEnum, getRedeliverCounter, getReturnObj, getStorageId, incrRedeliverCounter, isPersistent, isStored, setGlobal, setPersistent, setReturnObj, setStored, setWantReturnObject, toString, toXml, toXml, wantReturnObj |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
private static java.util.logging.Logger log
private static final long serialVersionUID
private static final java.lang.String ME
private final boolean forceDestroy
| Constructor Detail |
public MsgQueueHistoryEntry(ServerScope glob,
MsgUnitWrapper msgUnitWrapper,
StorageId storageId)
throws XmlBlasterException
public MsgQueueHistoryEntry(ServerScope glob,
PriorityEnum priority,
StorageId storageId,
Timestamp entryTimestamp,
java.lang.String keyOid,
long msgUnitWrapperUniqueId,
boolean persistent,
long sizeInBytes)
throws XmlBlasterException
| Method Detail |
protected boolean isForceDestroy()
isForceDestroy in class ReferenceEntrypublic int getPriority()
getPriority in interface I_EntrygetPriority in class MsgQueueEntrypublic long getUniqueId()
getUniqueId in interface I_EntrygetUniqueId in class MsgQueueEntrypublic java.lang.Long getUniqueIdLong()
getUniqueIdLong in class MsgQueueEntrypublic long getSizeInBytes()
MsgQueueEntry
getSizeInBytes in interface I_EntrygetSizeInBytes in class MsgQueueEntrypublic java.lang.Object clone()
clone in class ReferenceEntry
|
xmlBlaster 1.6.2 API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||