public class WildcardAddressManager extends SimpleAddressManager
mappings, metricsManager, wildcardConfiguration
Constructor and Description |
---|
WildcardAddressManager(BindingsFactory bindingsFactory,
StorageManager storageManager,
MetricsManager metricsManager) |
WildcardAddressManager(BindingsFactory bindingsFactory,
WildcardConfiguration wildcardConfiguration,
StorageManager storageManager,
MetricsManager metricsManager) |
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) |
AddressInfo |
removeAddressInfo(SimpleString address) |
Binding |
removeBinding(SimpleString uniqueName,
Transaction tx)
If the address is a wild card then the binding will be removed from the actual mappings for any linked address.
|
void |
updateMessageLoadBalancingTypeForAddress(SimpleString address,
MessageLoadBalancingType messageLoadBalancingType) |
addAddressInfo, addMappingInternal, getAddresses, getAddressInfo, getBinding, getBindings, getDirectBindings, getMatchingBindings, getMatchingQueue, getMatchingQueue, reloadAddressInfo, removeBindingInternal, removeMapping, updateAddressInfo
public WildcardAddressManager(BindingsFactory bindingsFactory, WildcardConfiguration wildcardConfiguration, StorageManager storageManager, MetricsManager metricsManager)
public WildcardAddressManager(BindingsFactory bindingsFactory, StorageManager storageManager, MetricsManager metricsManager)
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 void updateMessageLoadBalancingTypeForAddress(SimpleString address, MessageLoadBalancingType messageLoadBalancingType) throws Exception
updateMessageLoadBalancingTypeForAddress
in interface AddressManager
updateMessageLoadBalancingTypeForAddress
in class SimpleAddressManager
Exception
public Binding removeBinding(SimpleString uniqueName, Transaction tx) throws Exception
removeBinding
in interface AddressManager
removeBinding
in class SimpleAddressManager
uniqueName
- the name of the binding to removeException
public AddressInfo removeAddressInfo(SimpleString address) throws Exception
removeAddressInfo
in interface AddressManager
removeAddressInfo
in class SimpleAddressManager
Exception
public void clear()
clear
in interface AddressManager
clear
in class SimpleAddressManager
Copyright © 2020 JBoss by Red Hat. All rights reserved.