|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface 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(...) A queue can only be bound with one condition in the post office Each queue must have a unique name and channel ID
Method Summary | |
---|---|
boolean |
addBinding(Binding binding,
boolean allNodes)
Add a binding to the post office |
java.util.Collection |
getAllBindings()
Get all the bindings |
java.util.Collection |
getAllBindingsForQueueName(java.lang.String queueName)
Get all bindings with the specified queue name (They will be on different nodes) |
Binding |
getBindingForChannelID(long channelID)
Get the binding with the specified channel ID |
Binding |
getBindingForQueueName(java.lang.String queueName)
Get the binding with the specified queue name |
java.util.Map |
getFailoverMap()
Get the failover map |
java.lang.String |
getOfficeName()
Get the name of the post office |
java.util.Collection |
getQueuesForCondition(Condition condition,
boolean localOnly)
Get all queues that match the condition |
java.util.Map |
getRecoveryArea(java.lang.String queueName)
|
int |
getRecoveryMapSize(java.lang.String queueName)
|
boolean |
isClustered()
Is this post office clustered? |
boolean |
isFirstNode()
|
java.util.Set |
nodeIDView()
Get a set of nodes in the cluster |
Binding |
removeBinding(java.lang.String queueName,
boolean allNodes)
Remove a binding from the post office |
boolean |
route(MessageReference ref,
Condition condition,
Transaction tx)
Route a reference. |
void |
sendReplicateAckMessage(java.lang.String queueName,
long messageID)
|
void |
sendReplicateDeliveryMessage(java.lang.String queueName,
java.lang.String sessionID,
long messageID,
long deliveryID,
boolean reply,
boolean sync)
|
Methods inherited from interface org.jboss.messaging.core.contract.MessagingComponent |
---|
start, stop |
Method Detail |
---|
java.lang.String getOfficeName()
boolean addBinding(Binding binding, boolean allNodes) throws java.lang.Exception
binding
- The binding to addallNodes
- Add this binding on ALL nodes?
java.lang.Exception
Binding removeBinding(java.lang.String queueName, boolean allNodes) throws java.lang.Throwable
queueName
- The queue name that identifies the bindingallNodes
- Remove this binding from ALL node?
java.lang.Throwable
boolean route(MessageReference ref, Condition condition, Transaction tx) throws java.lang.Exception
condition
- - the message will be routed to queue(s) if the specified condition matches the
condition of the bindings.tx
- - the transaction or null if not in the context of a transaction.
java.lang.Exception
java.util.Collection getQueuesForCondition(Condition condition, boolean localOnly) throws java.lang.Exception
condition
- The conditionlocalOnly
- Only retrieve local queues ?
java.lang.Exception
Binding getBindingForQueueName(java.lang.String queueName) throws java.lang.Exception
queueName
-
java.lang.Exception
Binding getBindingForChannelID(long channelID) throws java.lang.Exception
channelID
-
java.lang.Exception
java.util.Collection getAllBindingsForQueueName(java.lang.String queueName) throws java.lang.Exception
queueName
-
java.lang.Exception
java.util.Collection getAllBindings() throws java.lang.Exception
java.lang.Exception
boolean isClustered()
java.util.Map getFailoverMap()
java.util.Set nodeIDView()
void sendReplicateDeliveryMessage(java.lang.String queueName, java.lang.String sessionID, long messageID, long deliveryID, boolean reply, boolean sync) throws java.lang.Exception
java.lang.Exception
void sendReplicateAckMessage(java.lang.String queueName, long messageID) throws java.lang.Exception
java.lang.Exception
boolean isFirstNode()
java.util.Map getRecoveryArea(java.lang.String queueName)
int getRecoveryMapSize(java.lang.String queueName)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |