|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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 |
durableSubscriberID
|
SpyMessage |
hardReference
|
int |
jmsDeliveryMode
|
byte |
jmsPriority
|
MessageCache |
messageCache
|
long |
messageExpiration
|
long |
messageId
|
long |
messageScheduledDelivery
|
static int |
NOT_STORED
The message is not persisted |
Object |
persistData
|
BasicQueue |
queue
|
boolean |
redelivered
|
int |
redeliveryCount
|
long |
redeliveryDelay
|
long |
referenceId
|
static int |
REMOVED
It was a persistent message for a joint cache store/persistent manager. |
SoftReference |
softReference
|
int |
stored
|
static int |
STORED
The message is persisted |
Method Summary | |
int |
compareTo(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(Object o)
|
SpyMessage.Header |
getHeaders()
We could optimize caching by keeping the headers but not the body. |
SpyMessage |
getMessage()
|
SpyMessage |
getMessageForDelivery()
|
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. |
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 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 queue
public MessageCache messageCache
public SoftReference softReference
public DurableSubscriptionID durableSubscriberID
public int stored
public transient Object persistData
Method Detail |
public SpyMessage getMessageForDelivery() throws javax.jms.JMSException
javax.jms.JMSException
public SpyMessage getMessage() throws javax.jms.JMSException
javax.jms.JMSException
public void redelivered() throws javax.jms.JMSException
javax.jms.JMSException
public boolean isExpired()
public boolean isPersistent()
public boolean inMemory()
public String getPersistentKey()
public boolean isLateClone()
public SpyMessage.Header getHeaders() throws javax.jms.JMSException
javax.jms.JMSException
public void invalidate() throws javax.jms.JMSException
javax.jms.JMSException
public void removeDelayed() throws javax.jms.JMSException
javax.jms.JMSException
public void setStored(int stored)
public boolean equals(Object o)
public int compareTo(Object o)
compareTo
in interface Comparable
Comparable.compareTo(Object)
public String toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |