Interface AddressManager
- All Known Implementing Classes:
SimpleAddressManager,WildcardAddressManager
public interface AddressManager
Used to maintain addresses and BindingsImpl.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanaddAddressInfo(AddressInfo addressInfo) Returnstrueif the address was added, false if it wasn't added.booleanaddBinding(Binding binding) booleancheckAutoRemoveAddress(AddressInfo addressInfo, AddressSettings settings, boolean ignoreDelay) voidclear()findLocalBinding(long id) getAddressInfo(SimpleString address) getBinding(SimpleString queueName) getBindingsForRoutingAddress(SimpleString address) getDirectBindings(SimpleString address) getMatchingBindings(SimpleString address) getMatchingQueue(SimpleString address, RoutingType routingType) getMatchingQueue(SimpleString address, SimpleString queueName, RoutingType routingType) booleanreloadAddressInfo(AddressInfo addressInfo) removeAddressInfo(SimpleString address) removeBinding(SimpleString uniqueName, Transaction tx) This will use a Transaction as we need to confirm the queue was removedvoidscanAddresses(MirrorController mirrorController) updateAddressInfo(SimpleString addressName, EnumSet<RoutingType> routingTypes) Update the specifiedAddressInfo
-
Method Details
-
addBinding
- Throws:
Exception
-
removeBinding
This will use a Transaction as we need to confirm the queue was removed- Throws:
Exception
-
getExistingBindingsForRoutingAddress
- Throws:
Exception
-
getBindingsForRoutingAddress
- Throws:
Exception
-
getMatchingBindings
- Throws:
Exception
-
getDirectBindings
- Throws:
Exception
-
getMatchingQueue
- Throws:
Exception
-
getMatchingQueue
SimpleString getMatchingQueue(SimpleString address, SimpleString queueName, RoutingType routingType) throws Exception - Throws:
Exception
-
findLocalBinding
-
clear
void clear() -
getBinding
-
getBindings
-
getAddresses
Set<SimpleString> getAddresses() -
addAddressInfo
Returnstrueif the address was added, false if it wasn't added.- Returns:
trueif the address was added, false if it wasn't added- Throws:
Exception
-
reloadAddressInfo
- Throws:
Exception
-
updateAddressInfo
AddressInfo updateAddressInfo(SimpleString addressName, EnumSet<RoutingType> routingTypes) throws Exception Update the specifiedAddressInfo- Returns:
- the updated
AddressInfoornullif there are no updates - Throws:
Exception- if the address doesn't exist
-
removeAddressInfo
- Throws:
Exception
-
getAddressInfo
-
scanAddresses
- Throws:
Exception
-
checkAutoRemoveAddress
boolean checkAutoRemoveAddress(AddressInfo addressInfo, AddressSettings settings, boolean ignoreDelay) throws Exception - Throws:
Exception
-