| org.jboss.messaging.interfaces.Consumer
All known Subclasses: org.jboss.test.messaging.AcceptAllConsumer,
Consumer | public interface Consumer (Code) | | A consumer of messages.
author: Adrian Brock version: $Revision: 57195 $ |
Method Summary | |
boolean | accepts(MessageReference reference, boolean active) Check whether the consumer accepts the message.
Parameters: reference - the message reference Parameters: active - whether to check for activity, pass falseto test for acceptance, true when extra checksfor an active consumer are required. | void | onMessage(MessageReference reference) |
accepts | boolean accepts(MessageReference reference, boolean active)(Code) | | Check whether the consumer accepts the message.
Parameters: reference - the message reference Parameters: active - whether to check for activity, pass falseto test for acceptance, true when extra checksfor an active consumer are required. true when it accepts the message, false otherwise |
onMessage | void onMessage(MessageReference reference)(Code) | | Invoked when a message needs consuming
Parameters: reference - the message reference |
|
|