|
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.util.queuemsg.DummyEntry
public class DummyEntry
Field Summary | |
---|---|
private byte[] |
content
|
static java.lang.String |
ENTRY_TYPE
|
private static java.util.logging.Logger |
log
|
static java.lang.String |
ME
|
private static long |
serialVersionUID
|
private long |
sizeOfMsg
|
Fields inherited from class org.xmlBlaster.util.queuemsg.MsgQueueEntry |
---|
entryType, glob, persistent, priority, redeliverCounter, refToCloneOrigin, returnObj, storageId, uniqueIdString, uniqueIdTimestamp, wantReturnObj |
Constructor Summary | |
---|---|
DummyEntry(Global glob,
PriorityEnum priority,
StorageId storageId,
boolean persistent)
|
|
DummyEntry(Global glob,
PriorityEnum priority,
StorageId storageId,
long sizeOfMsg,
boolean persistent)
|
|
DummyEntry(Global glob,
PriorityEnum priority,
Timestamp timestamp,
StorageId storageId,
long sizeOfMsg,
boolean persistent)
This constructor is for internal creation from persistence only (passing the original timestamp). |
|
DummyEntry(Global glob,
PriorityEnum priority,
Timestamp timestamp,
StorageId storageId,
long sizeInBytes,
byte[] content,
boolean persistent)
Called by ClientEntryFactory and ServerEntryFactory only |
Method Summary | |
---|---|
void |
embeddedObjectToXml(java.io.OutputStream out,
java.util.Properties props)
Dump content to xml representation |
java.lang.Object |
getEmbeddedObject()
This constructor is for internal creation from persistence only (passing the original timestamp). |
java.lang.String |
getEmbeddedType()
Gets the type of the object embedded in this entry, how the object is serialized. |
java.lang.String |
getKeyOid()
|
MsgUnit |
getMsgUnit()
|
SessionName |
getReceiver()
|
SessionName |
getSender()
|
long |
getSizeInBytes()
Try to find out the approximate memory consumption of this message in RAM. |
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 |
setPersistent(boolean persistent)
Note: Setting here is probably buggy as on reload from DB it seems to be handled as transient if embedded MsgUnit is not persistent. |
Methods inherited from class org.xmlBlaster.util.queuemsg.MsgQueueEntry |
---|
added, clone, compare, equals, finalize, getLogId, getMeat, getMethodName, getPriority, getPriorityEnum, getRedeliverCounter, getRef, getReturnObj, getStorageId, getUniqueId, getUniqueIdLong, incrRedeliverCounter, isPersistent, isStored, removed, setGlobal, setRefToCloneOrigin, 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 final long serialVersionUID
private static java.util.logging.Logger log
public static final java.lang.String ME
public static final java.lang.String ENTRY_TYPE
private long sizeOfMsg
private byte[] content
Constructor Detail |
---|
public DummyEntry(Global glob, PriorityEnum priority, Timestamp timestamp, StorageId storageId, long sizeOfMsg, boolean persistent)
public DummyEntry(Global glob, PriorityEnum priority, Timestamp timestamp, StorageId storageId, long sizeInBytes, byte[] content, boolean persistent)
public DummyEntry(Global glob, PriorityEnum priority, StorageId storageId, boolean persistent)
public DummyEntry(Global glob, PriorityEnum priority, StorageId storageId, long sizeOfMsg, boolean persistent)
Method Detail |
---|
public java.lang.Object getEmbeddedObject()
public final boolean isExpired()
MsgQueueEntry
isExpired
in class MsgQueueEntry
public final boolean isDestroyed()
MsgQueueEntry
isDestroyed
in class MsgQueueEntry
MsgQueueEntry.isDestroyed()
public final SessionName getSender()
getSender
in class MsgQueueEntry
public final SessionName getReceiver()
getReceiver
in class MsgQueueEntry
public final java.lang.String getKeyOid()
getKeyOid
in class MsgQueueEntry
public MsgUnit getMsgUnit() throws XmlBlasterException
getMsgUnit
in class MsgQueueEntry
XmlBlasterException
public java.lang.String getEmbeddedType()
I_Entry
getEmbeddedType
in interface I_Entry
getEmbeddedType
in class MsgQueueEntry
public boolean isInternal()
isInternal
in class MsgQueueEntry
public final long getSizeInBytes()
MsgQueueEntry
getSizeInBytes
in interface I_Entry
getSizeInBytes
in class MsgQueueEntry
public final void setPersistent(boolean persistent)
MsgQueueEntry
setPersistent
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
|
xmlBlaster 2.2.0 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |