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(org.apache.activemq.artemis.api.core.SimpleString address,
Binding binding) |
void |
clear() |
Set<org.apache.activemq.artemis.api.core.SimpleString> |
getAddresses() |
Binding |
getBinding(org.apache.activemq.artemis.api.core.SimpleString bindableName) |
Map<org.apache.activemq.artemis.api.core.SimpleString,Binding> |
getBindings() |
Bindings |
getBindingsForRoutingAddress(org.apache.activemq.artemis.api.core.SimpleString address) |
Bindings |
getMatchingBindings(org.apache.activemq.artemis.api.core.SimpleString address) |
Binding |
removeBinding(org.apache.activemq.artemis.api.core.SimpleString uniqueName,
Transaction tx)
This will use a Transaction as we need to confirm the queue was removed
|
protected void |
removeBindingInternal(org.apache.activemq.artemis.api.core.SimpleString address,
org.apache.activemq.artemis.api.core.SimpleString bindableName) |
protected Binding |
removeMapping(org.apache.activemq.artemis.api.core.SimpleString bindableName,
Bindings bindings) |
public SimpleAddressManager(BindingsFactory bindingsFactory)
public boolean addBinding(Binding binding) throws Exception
addBinding in interface AddressManagerExceptionpublic Binding removeBinding(org.apache.activemq.artemis.api.core.SimpleString uniqueName, Transaction tx) throws Exception
AddressManagerremoveBinding in interface AddressManagerExceptionpublic Bindings getBindingsForRoutingAddress(org.apache.activemq.artemis.api.core.SimpleString address) throws Exception
getBindingsForRoutingAddress in interface AddressManagerExceptionpublic Binding getBinding(org.apache.activemq.artemis.api.core.SimpleString bindableName)
getBinding in interface AddressManagerpublic Map<org.apache.activemq.artemis.api.core.SimpleString,Binding> getBindings()
getBindings in interface AddressManagerpublic Bindings getMatchingBindings(org.apache.activemq.artemis.api.core.SimpleString address) throws Exception
getMatchingBindings in interface AddressManagerExceptionpublic void clear()
clear in interface AddressManagerpublic Set<org.apache.activemq.artemis.api.core.SimpleString> getAddresses()
getAddresses in interface AddressManagerprotected void removeBindingInternal(org.apache.activemq.artemis.api.core.SimpleString address,
org.apache.activemq.artemis.api.core.SimpleString bindableName)
protected Binding removeMapping(org.apache.activemq.artemis.api.core.SimpleString bindableName, Bindings bindings)
Copyright © 2023 The Apache Software Foundation. All rights reserved.