|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.messaging.memory.MemoryMessageSet
An in memory message set
Constructor Summary | |
MemoryMessageSet(java.util.Comparator comparator)
Create a new MemoryMessageSet. |
Method Summary | |
void |
add(MessageReference (src) reference)
Add a message to the message set. |
void |
lock()
Lock the message set |
MessageReference (src) |
remove(Consumer (src) consumer)
Remove a message from the message set. |
void |
setConsumer(Consumer (src) consumer)
Set the consumer for out of band notifications |
void |
unlock()
Unlock the message set |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public MemoryMessageSet(java.util.Comparator comparator)
comparator
- the comparator for the messagesMethod Detail |
public void add(MessageReference (src) reference)
MessageSet (src)
add
in interface MessageSet (src)
reference
- the message reference to addpublic MessageReference (src) remove(Consumer (src) consumer)
MessageSet (src)
remove
in interface MessageSet (src)
consumer
- the consumer used to accept the message
public void lock()
MessageSet (src)
lock
in interface MessageSet (src)
public void unlock()
MessageSet (src)
unlock
in interface MessageSet (src)
public void setConsumer(Consumer (src) consumer)
MessageSet (src)
setConsumer
in interface MessageSet (src)
consumer
- the consumer
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |