|
xmlBlaster 2.2.0 client 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.client.queuemsg.MsgQueueUnSubscribeEntry
public final class MsgQueueUnSubscribeEntry
Wraps an unSubscribe() 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 | |
---|---|
MsgQueueUnSubscribeEntry(Global glob,
PriorityEnum priority,
StorageId storageId,
Timestamp timestamp,
long sizeInBytes,
UnSubscribeKey unSubscribeKey,
UnSubscribeQos unSubscribeQos)
For persistence recovery |
|
MsgQueueUnSubscribeEntry(Global glob,
StorageId storageId,
UnSubscribeKey unSubscribeKey,
UnSubscribeQos unSubscribeQos)
Use this constructor if a new message object is fed by method unSubscribe(). |
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 embeddded object for this implementing class is an Object[2] where Object[0] = qos.toXml() Object[1] = key.toXml() |
java.lang.String |
getKeyOid()
|
MsgUnit |
getMsgUnit()
|
Timestamp |
getRcvTimestamp()
return null |
SessionName |
getReceiver()
|
SessionName |
getSender()
Access the unique login name of the unSubscriber. |
long |
getSizeInBytes()
Try to find out the approximate memory consumption of this message in RAM. |
UnSubscribeKey |
getUnSubscribeKey()
|
UnSubscribeQos |
getUnSubscribeQos()
|
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, getMeat, getMethodName, getPriority, getPriorityEnum, getRedeliverCounter, getRef, 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 MsgQueueUnSubscribeEntry(Global glob, StorageId storageId, UnSubscribeKey unSubscribeKey, UnSubscribeQos unSubscribeQos) throws XmlBlasterException
unSubscribeQos
-
XmlBlasterException
public MsgQueueUnSubscribeEntry(Global glob, PriorityEnum priority, StorageId storageId, Timestamp timestamp, long sizeInBytes, UnSubscribeKey unSubscribeKey, UnSubscribeQos unSubscribeQos)
Method Detail |
---|
public boolean isExpired()
MsgQueueEntry
isExpired
in class MsgQueueEntry
MsgQueueEntry.isExpired()
public boolean isDestroyed()
MsgQueueEntry
isDestroyed
in class MsgQueueEntry
MsgQueueEntry.isDestroyed()
public UnSubscribeQos getUnSubscribeQos()
public UnSubscribeKey getUnSubscribeKey()
public MsgUnit getMsgUnit()
getMsgUnit
in class MsgQueueEntry
public SessionName getSender()
getSender
in class MsgQueueEntry
MsgQueueEntry.getSender()
public void setReceiver(SessionName receiver)
MsgQueueEntry.getReceiver()
public SessionName getReceiver()
getReceiver
in class MsgQueueEntry
MsgQueueEntry.getReceiver()
public java.lang.String getKeyOid()
getKeyOid
in class MsgQueueEntry
MsgQueueEntry.getKeyOid()
public Timestamp getRcvTimestamp()
public java.lang.Object getEmbeddedObject()
public long getSizeInBytes()
MsgQueueEntry
getSizeInBytes
in interface I_Entry
getSizeInBytes
in class MsgQueueEntry
public boolean isInternal()
isInternal
in class MsgQueueEntry
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.IOException
public java.lang.Object clone()
clone
in class MsgQueueEntry
|
xmlBlaster 2.2.0 client API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |