|
||||||||||
PREV CLASS (src) NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.mq.server.MessageReference
This class holds a reference to an actual Message. Where it is actually at may vary. The reference it holds may be a:
Field Summary | |
DurableSubscriptionID (src) |
durableSubscriberID
|
SpyMessage (src) |
hardReference
|
int |
jmsDeliveryMode
|
byte |
jmsPriority
|
MessageCache (src) |
messageCache
|
long |
messageExpiration
|
long |
messageId
|
long |
messageScheduledDelivery
|
static int |
NOT_STORED
The message is not persisted |
java.lang.Object |
persistData
|
BasicQueue (src) |
queue
|
boolean |
redelivered
|
int |
redeliveryCount
|
long |
redeliveryDelay
|
long |
referenceId
|
static int |
REMOVED
It was a persistent message for a joint cache store/persistent manager. |
java.lang.ref.SoftReference |
softReference
|
int |
stored
|
static int |
STORED
The message is persisted |
Method Summary | |
int |
compareTo(java.lang.Object o)
This method allows message to be order on the server queues by priority and the order that they came in on. |
boolean |
equals(java.lang.Object o)
|
SpyMessage.Header (src) |
getHeaders()
We could optimize caching by keeping the headers but not the body. |
SpyMessage (src) |
getMessage()
|
SpyMessage (src) |
getMessageForDelivery()
|
java.lang.String |
getPersistentKey()
Determines the persistent for storing the message |
boolean |
inMemory()
Are we entirely in memory? |
void |
invalidate()
|
boolean |
isExpired()
Returns true if this message reference has expired. |
boolean |
isLateClone()
Are we late cloning messages? |
boolean |
isPersistent()
Determines whether the message is persistent in the sense that it survives a crash |
void |
redelivered()
The message is being redelivered |
void |
removeDelayed()
|
void |
setStored(int stored)
Called from A PeristenceManager/CacheStore, to let us know that this message is already stored on disk. |
java.lang.String |
toString()
For debugging |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final int NOT_STORED
public static final int STORED
public static final int REMOVED
public long referenceId
public SpyMessage (src) hardReference
public byte jmsPriority
public long messageId
public int jmsDeliveryMode
public long messageScheduledDelivery
public long messageExpiration
public boolean redelivered
public long redeliveryDelay
public int redeliveryCount
public BasicQueue (src) queue
public MessageCache (src) messageCache
public java.lang.ref.SoftReference softReference
public DurableSubscriptionID (src) durableSubscriberID
public int stored
public transient java.lang.Object persistData
Method Detail |
public SpyMessage (src) getMessageForDelivery() throws JMSException (src)
JMSException (src)
public SpyMessage (src) getMessage() throws JMSException (src)
JMSException (src)
public void redelivered() throws JMSException (src)
JMSException (src)
public boolean isExpired()
public boolean isPersistent()
public boolean inMemory()
public java.lang.String getPersistentKey()
public boolean isLateClone()
public SpyMessage.Header (src) getHeaders() throws JMSException (src)
JMSException (src)
public void invalidate() throws JMSException (src)
JMSException (src)
public void removeDelayed() throws JMSException (src)
JMSException (src)
public void setStored(int stored)
public boolean equals(java.lang.Object o)
public int compareTo(java.lang.Object o)
compareTo
in interface java.lang.Comparable
Comparable.compareTo(Object)
public java.lang.String toString()
|
||||||||||
PREV CLASS (src) NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |