|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.messaging.core.impl.OrderingGroup
public class OrderingGroup
This class holds the states of messages in an ordering group.
Constructor Summary | |
---|---|
OrderingGroup(java.lang.String name)
|
Method Summary | |
---|---|
java.lang.String |
getGroupName()
|
boolean |
hasPendingMessage()
check if there are more message available in the list. |
int |
isAvailable(MessageReference ref)
See if the ref be there and be the first Simply comparing the addresses simply doesn't work! |
void |
markSending(MessageReference ref)
Set the flag that the Message is being delivered. |
boolean |
register(MessageReference ref)
Adding a message to a list. |
void |
unmarkSending(MessageReference ref)
|
void |
unregister(MessageReference ref)
remove the message reference from the group Note: the ref will be removed if and only if the ref resides the first in the list, otherwise just ignore it. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public OrderingGroup(java.lang.String name)
Method Detail |
---|
public boolean register(MessageReference ref)
ref
- The message reference to be added
JMSException
public int isAvailable(MessageReference ref)
public void unregister(MessageReference ref)
public boolean hasPendingMessage()
public void markSending(MessageReference ref)
ref
- public java.lang.String getGroupName()
public void unmarkSending(MessageReference ref)
ref
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |