|
xmlBlaster 2.2.0 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.MsgQueueUpdateEntry
public final class MsgQueueUpdateEntry
Wraps an publish() message into an entry for a sorted queue.
| Field Summary | |
|---|---|
private java.lang.String |
flag
Contains state|updateOneway|forceDestroy, for example "OK|oneway" or "OK" |
private static java.util.logging.Logger |
log
|
private static java.lang.String |
ME
|
private static long |
serialVersionUID
|
private java.lang.String |
state
|
private java.lang.String |
subscriptionId
|
private boolean |
updateOneway
|
| 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 | |
|---|---|
MsgQueueUpdateEntry(MsgQueueUpdateEntry entry,
StorageId storageId)
Copy constructor, used to get a shallow clone, we still reference the original MsgUnitWrapper. |
|
MsgQueueUpdateEntry(ServerScope glob,
MsgUnitWrapper msgUnitWrapper,
StorageId storageId,
SessionName receiver,
java.lang.String subscriptionId,
boolean wantUpdateOneway,
boolean wantNewestOnly)
A new message object is fed by method publish(). |
|
MsgQueueUpdateEntry(ServerScope glob,
MsgUnitWrapper msgUnitWrapper,
Timestamp timestamp,
StorageId storageId,
SessionName receiver,
java.lang.String subscriptionId,
boolean wantUpdateOneway,
boolean wantNewestOnly)
convenience constructor to allow passing an already given uniqueId (the timestamp) |
|
MsgQueueUpdateEntry(ServerScope glob,
PriorityEnum priority,
StorageId storageId,
Timestamp updateEntryTimestamp,
java.lang.String keyOid,
long msgUnitWrapperUniqueId,
boolean persistent,
long sizeInBytes,
SessionName receiver,
java.lang.String subscriptionId,
java.lang.String flag,
int redeliverCount,
java.lang.String qos,
java.lang.String key,
byte[] content)
For persistence recovery The params qos, key, content can be null (the unparsed raw message) |
|
| Method Summary | |
|---|---|
java.lang.Object |
clone()
Returns a shallow clone |
java.lang.Object |
getEmbeddedObject()
The embedded object for this implementing class is an Object[6] for transient messages and Object[9] for persistent messages. |
java.lang.String |
getFlag()
Holds state and updateOneway information |
XBRef |
getRef()
For the new queues |
long |
getSizeInBytes()
Try to find out the approximate memory consumption of this message in RAM. |
java.lang.String |
getState()
|
java.lang.String |
getSubscriptionId()
|
protected boolean |
isForceDestroy()
|
boolean |
newestOnly()
|
java.lang.String |
toXml()
Dump state of this object into XML. |
java.lang.String |
toXml(java.lang.String extraOffset)
Dump state of this object into XML. |
boolean |
updateOneway()
true if the subscriber has passed <updateOneway> in his SubscribeQos |
| Methods inherited from class org.xmlBlaster.engine.queuemsg.ReferenceEntry |
|---|
added, embeddedObjectToXml, 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, getPriority, getPriorityEnum, getRedeliverCounter, getReturnObj, getStorageId, getUniqueId, getUniqueIdLong, incrRedeliverCounter, isPersistent, isStored, setGlobal, setPersistent, setReturnObj, setStored, setWantReturnObject, toString, 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 java.lang.String subscriptionId
private final java.lang.String flag
private final java.lang.String state
private final boolean updateOneway
| Constructor Detail |
|---|
public MsgQueueUpdateEntry(ServerScope glob,
MsgUnitWrapper msgUnitWrapper,
StorageId storageId,
SessionName receiver,
java.lang.String subscriptionId,
boolean wantUpdateOneway,
boolean wantNewestOnly)
throws XmlBlasterException
wantNewestOnly - TODOmsgUnit - The raw data, we keep a weak reference only on this data so it can be garbage collected
XmlBlasterException
public MsgQueueUpdateEntry(ServerScope glob,
MsgUnitWrapper msgUnitWrapper,
Timestamp timestamp,
StorageId storageId,
SessionName receiver,
java.lang.String subscriptionId,
boolean wantUpdateOneway,
boolean wantNewestOnly)
throws XmlBlasterException
glob - msgUnitWrapper - timestamp - storageId - receiver - subscriptionId - wantUpdateOneway - wantNewestOnly - TODO
XmlBlasterException
public MsgQueueUpdateEntry(ServerScope glob,
PriorityEnum priority,
StorageId storageId,
Timestamp updateEntryTimestamp,
java.lang.String keyOid,
long msgUnitWrapperUniqueId,
boolean persistent,
long sizeInBytes,
SessionName receiver,
java.lang.String subscriptionId,
java.lang.String flag,
int redeliverCount,
java.lang.String qos,
java.lang.String key,
byte[] content)
throws XmlBlasterException
XmlBlasterException
public MsgQueueUpdateEntry(MsgQueueUpdateEntry entry,
StorageId storageId)
throws XmlBlasterException
XmlBlasterException| Method Detail |
|---|
protected boolean isForceDestroy()
isForceDestroy in class ReferenceEntrypublic java.lang.String getSubscriptionId()
public java.lang.String getState()
public boolean newestOnly()
public java.lang.String getFlag()
public boolean updateOneway()
public long getSizeInBytes()
MsgQueueEntry
getSizeInBytes in interface I_EntrygetSizeInBytes in class MsgQueueEntrypublic java.lang.Object getEmbeddedObject()
We need to store the 'meat' for persistent messages as well After a recovery the 'meat's reference counter is not valid so we need to have all informations duplicated in each callback queue.
getEmbeddedObject in interface I_EntrygetEmbeddedObject in class ReferenceEntrypublic java.lang.Object clone()
clone in class ReferenceEntrypublic final java.lang.String toXml()
toXml in class MsgQueueEntrypublic final java.lang.String toXml(java.lang.String extraOffset)
toXml in class MsgQueueEntryextraOffset - indenting of tags
public XBRef getRef()
MsgQueueEntry
getRef in interface I_EntrygetRef in class MsgQueueEntry
|
xmlBlaster 2.2.0 API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||