public class SimpleAddressManager extends Object implements AddressManager
| Constructor and Description |
|---|
SimpleAddressManager(BindingsFactory bindingsFactory) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
addBinding(Binding binding) |
protected boolean |
addMappingInternal(SimpleString address,
Binding binding) |
void |
clear() |
Set<SimpleString> |
getAddresses() |
Binding |
getBinding(SimpleString bindableName) |
Map<SimpleString,Binding> |
getBindings() |
Bindings |
getBindingsForRoutingAddress(SimpleString address) |
Bindings |
getMatchingBindings(SimpleString address) |
Binding |
removeBinding(SimpleString uniqueName,
Transaction tx)
This will use a Transaction as we need to confirm the queue was removed
|
protected void |
removeBindingInternal(SimpleString address,
SimpleString bindableName) |
protected Binding |
removeMapping(SimpleString bindableName,
Bindings bindings) |
public SimpleAddressManager(BindingsFactory bindingsFactory)
public boolean addBinding(Binding binding) throws Exception
addBinding in interface AddressManagerExceptionpublic Binding removeBinding(SimpleString uniqueName, Transaction tx) throws Exception
AddressManagerremoveBinding in interface AddressManagerExceptionpublic Bindings getBindingsForRoutingAddress(SimpleString address) throws Exception
getBindingsForRoutingAddress in interface AddressManagerExceptionpublic Binding getBinding(SimpleString bindableName)
getBinding in interface AddressManagerpublic Map<SimpleString,Binding> getBindings()
getBindings in interface AddressManagerpublic Bindings getMatchingBindings(SimpleString address) throws Exception
getMatchingBindings in interface AddressManagerExceptionpublic void clear()
clear in interface AddressManagerpublic Set<SimpleString> getAddresses()
getAddresses in interface AddressManagerprotected void removeBindingInternal(SimpleString address, SimpleString bindableName)
protected Binding removeMapping(SimpleString bindableName, Bindings bindings)
protected boolean addMappingInternal(SimpleString address, Binding binding) throws Exception
ExceptionCopyright © 2018 JBoss by Red Hat. All rights reserved.