|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.messaging.core.impl.OrderingGroupMonitor
public class OrderingGroupMonitor
This class guards against any delivering of ordering group messages.
Field Summary | |
---|---|
static int |
NOT_OK_BEING_SENT
|
static int |
NOT_OK_NOT_FIRST
|
static int |
OK
|
Constructor Summary | |
---|---|
OrderingGroupMonitor()
|
Method Summary | |
---|---|
int |
isAvailable(MessageReference ref)
If ref is not in our registry, just return OK. |
static boolean |
isOrderingGroupMessage(MessageReference ref)
check if the message has a group name |
void |
markSending(MessageReference ref)
|
boolean |
messageCompleted(MessageReference ref)
This method indicates a messgae is completed. |
void |
registerMessage(MessageReference ref)
Check the message is it is a member of an ordering group, if so, put it in; if not, do nothing. |
void |
unmarkSending(MessageReference ref)
reducing the refcount, if zero, remove it. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int OK
public static final int NOT_OK_NOT_FIRST
public static final int NOT_OK_BEING_SENT
Constructor Detail |
---|
public OrderingGroupMonitor()
Method Detail |
---|
public void registerMessage(MessageReference ref)
public int isAvailable(MessageReference ref)
public boolean messageCompleted(MessageReference ref)
public void unmarkSending(MessageReference ref)
public void markSending(MessageReference ref)
public static boolean isOrderingGroupMessage(MessageReference ref)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |