|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A PostOffice A post office holds bindings of queues to conditions. When routing a reference, the post office routes the reference to any binding whose condition matches the condition specified in the call to route(...) Currently we only support conditions where the condition is an exact text match, and there is a single binding per queue.
Method Summary | |
Binding |
bindQueue(Condition condition,
Queue queue)
|
Binding |
getBindingforChannelId(long channelId)
|
Binding |
getBindingForQueueName(java.lang.String queueName)
Get the binding for the specified queue name. |
java.util.Collection |
getBindingsForCondition(Condition condition)
List the bindings that match the specified condition |
java.lang.String |
getOfficeName()
|
boolean |
isLocal()
|
boolean |
route(MessageReference ref,
Condition condition,
Transaction tx)
Route a reference. |
Binding |
unbindQueue(java.lang.String queueName)
|
Methods inherited from interface org.jboss.messaging.core.plugin.contract.MessagingComponent |
start, stop |
Method Detail |
public java.lang.String getOfficeName()
public Binding bindQueue(Condition condition, Queue queue) throws java.lang.Exception
java.lang.Exception
public Binding unbindQueue(java.lang.String queueName) throws java.lang.Throwable
java.lang.Throwable
public java.util.Collection getBindingsForCondition(Condition condition) throws java.lang.Exception
java.lang.Exception
public Binding getBindingForQueueName(java.lang.String queueName) throws java.lang.Exception
java.lang.Exception
public boolean route(MessageReference ref, Condition condition, Transaction tx) throws java.lang.Exception
condition
- - the message will be routed to a queue if specified condition matches the
condition of the binding.tx
- - the transaction or null if not in the context of a transaction.
java.lang.Exception
public boolean isLocal()
public Binding getBindingforChannelId(long channelId) throws java.lang.Exception
java.lang.Exception
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |