Interface AddressManager
-
- All Known Implementing Classes:
SimpleAddressManager,WildcardAddressManager
public interface AddressManagerUsed to maintain addresses and BindingsImpl.
-
-
Method Summary
-
-
-
Method Detail
-
removeBinding
Binding removeBinding(SimpleString uniqueName, Transaction tx) throws Exception
This will use a Transaction as we need to confirm the queue was removed- Parameters:
uniqueName-tx-- Returns:
- Throws:
Exception
-
getExistingBindingsForRoutingAddress
Bindings getExistingBindingsForRoutingAddress(SimpleString address) throws Exception
- Throws:
Exception
-
getBindingsForRoutingAddress
Bindings getBindingsForRoutingAddress(SimpleString address) throws Exception
- Throws:
Exception
-
getMatchingBindings
Collection<Binding> getMatchingBindings(SimpleString address) throws Exception
- Throws:
Exception
-
getDirectBindings
Collection<Binding> getDirectBindings(SimpleString address) throws Exception
- Throws:
Exception
-
getMatchingQueue
SimpleString getMatchingQueue(SimpleString address, RoutingType routingType) throws Exception
- Throws:
Exception
-
getMatchingQueue
SimpleString getMatchingQueue(SimpleString address, SimpleString queueName, RoutingType routingType) throws Exception
- Throws:
Exception
-
clear
void clear()
-
getBinding
Binding getBinding(SimpleString queueName)
-
getAddresses
Set<SimpleString> getAddresses()
-
addAddressInfo
boolean addAddressInfo(AddressInfo addressInfo) throws Exception
- Parameters:
addressInfo-- Returns:
- true if the address was added, false if it wasn't added
- Throws:
Exception
-
reloadAddressInfo
boolean reloadAddressInfo(AddressInfo addressInfo) throws Exception
- Throws:
Exception
-
updateAddressInfo
AddressInfo updateAddressInfo(SimpleString addressName, EnumSet<RoutingType> routingTypes) throws Exception
it will return null if there are no updates. it will throw an exception if the address doesn't exist- Throws:
Exception
-
removeAddressInfo
AddressInfo removeAddressInfo(SimpleString address) throws Exception
- Throws:
Exception
-
getAddressInfo
AddressInfo getAddressInfo(SimpleString address)
-
scanAddresses
void scanAddresses(MirrorController mirrorController) throws Exception
- Throws:
Exception
-
checkAutoRemoveAddress
boolean checkAutoRemoveAddress(AddressInfo addressInfo, AddressSettings settings, boolean ignoreDelay) throws Exception
- Throws:
Exception
-
-