|
xmlBlaster 2.2.0 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.xmlBlaster.util.queuemsg.MsgQueueEntry org.xmlBlaster.engine.queuemsg.ReferenceEntry org.xmlBlaster.engine.queuemsg.MsgQueueHistoryEntry
public final class 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 |
XBRef |
getRef()
For the new queues |
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, getInfoWithoutMeat, getKeyOid, getMeat, getMsgKeyData, getMsgQosData, getMsgUnit, getMsgUnitOrNull, getMsgUnitWrapper, getMsgUnitWrapperUniqueId, getRcvTimestamp, getReceiver, getSender, isDestroyed, isExpired, isInternal, removed, setMsgUnitWrapper, setReceiver, setStorageId |
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
msgUnit
- The raw data, we keep a weak reference only on this data so it can be garbage collected
XmlBlasterException
public MsgQueueHistoryEntry(ServerScope glob, PriorityEnum priority, StorageId storageId, Timestamp entryTimestamp, java.lang.String keyOid, long msgUnitWrapperUniqueId, boolean persistent, long sizeInBytes) throws XmlBlasterException
XmlBlasterException
Method Detail |
---|
protected boolean isForceDestroy()
isForceDestroy
in class ReferenceEntry
public int getPriority()
getPriority
in interface I_Entry
getPriority
in class MsgQueueEntry
public long getUniqueId()
getUniqueId
in interface I_Entry
getUniqueId
in class MsgQueueEntry
negative
- nano seconds to enforce LIFO behavior (the newest message is at the front)
public java.lang.Long getUniqueIdLong()
getUniqueIdLong
in class MsgQueueEntry
negative
- nano seconds to enforce LIFO behavior (the newest message is at the front)public long getSizeInBytes()
MsgQueueEntry
getSizeInBytes
in interface I_Entry
getSizeInBytes
in class MsgQueueEntry
public java.lang.Object clone()
clone
in class ReferenceEntry
public XBRef getRef()
MsgQueueEntry
getRef
in interface I_Entry
getRef
in class MsgQueueEntry
|
xmlBlaster 2.2.0 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |