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, removeMapping
public WildcardAddressManager(BindingsFactory bindingsFactory)
public Bindings getBindingsForRoutingAddress(SimpleString address) throws Exception
getBindingsForRoutingAddress
in interface AddressManager
getBindingsForRoutingAddress
in class SimpleAddressManager
Exception
public boolean addBinding(Binding binding) throws Exception
addBinding
in interface AddressManager
addBinding
in class SimpleAddressManager
binding
- the binding to addException
public Binding removeBinding(SimpleString uniqueName) throws Exception
removeBinding
in interface AddressManager
removeBinding
in class SimpleAddressManager
uniqueName
- the name of the binding to removeException
public void clear()
clear
in interface AddressManager
clear
in class SimpleAddressManager
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.