public class WildcardAddressManager extends SimpleAddressManager
| Constructor and Description |
|---|
WildcardAddressManager(BindingsFactory bindingsFactory) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
addBinding(Binding binding)
If the address to add the binding to contains a wildcard then a copy of the binding (with the same underlying queue)
will be added to the actual mappings.
|
void |
clear() |
Bindings |
getBindingsForRoutingAddress(SimpleString address) |
Binding |
removeBinding(SimpleString uniqueName)
If the address is a wild card then the binding will be removed from the actual mappings for any linked address.
|
addMappingInternal, getBinding, getBindings, getMatchingBindings, removeBindingInternal, removeMappingpublic WildcardAddressManager(BindingsFactory bindingsFactory)
public Bindings getBindingsForRoutingAddress(SimpleString address) throws Exception
getBindingsForRoutingAddress in interface AddressManagergetBindingsForRoutingAddress in class SimpleAddressManagerExceptionpublic boolean addBinding(Binding binding) throws Exception
addBinding in interface AddressManageraddBinding in class SimpleAddressManagerbinding - the binding to addExceptionpublic Binding removeBinding(SimpleString uniqueName) throws Exception
removeBinding in interface AddressManagerremoveBinding in class SimpleAddressManageruniqueName - the name of the binding to removeExceptionpublic void clear()
clear in interface AddressManagerclear in class SimpleAddressManagerCopyright © 2012 JBoss by Red Hat. All Rights Reserved.