public class PostOfficeImpl extends Object implements PostOffice, NotificationListener, BindingsFactory
Modifier and Type | Class and Description |
---|---|
static class |
PostOfficeImpl.AddOperation |
Modifier and Type | Field and Description |
---|---|
static SimpleString |
BRIDGE_CACHE_STR |
static SimpleString |
HDR_RESET_QUEUE_DATA |
static SimpleString |
HDR_RESET_QUEUE_DATA_COMPLETE |
Constructor and Description |
---|
PostOfficeImpl(ActiveMQServer server,
StorageManager storageManager,
PagingManager pagingManager,
QueueFactory bindableFactory,
ManagementService managementService,
long reaperPeriod,
int reaperPriority,
WildcardConfiguration wildcardConfiguration,
int idCacheSize,
boolean persistIDCache,
HierarchicalRepository<AddressSettings> addressSettingsRepository) |
public static final SimpleString HDR_RESET_QUEUE_DATA
public static final SimpleString HDR_RESET_QUEUE_DATA_COMPLETE
public static final SimpleString BRIDGE_CACHE_STR
public PostOfficeImpl(ActiveMQServer server, StorageManager storageManager, PagingManager pagingManager, QueueFactory bindableFactory, ManagementService managementService, long reaperPeriod, int reaperPriority, WildcardConfiguration wildcardConfiguration, int idCacheSize, boolean persistIDCache, HierarchicalRepository<AddressSettings> addressSettingsRepository)
public void start() throws Exception
start
in interface ActiveMQComponent
Exception
public void stop() throws Exception
stop
in interface ActiveMQComponent
Exception
public boolean isStarted()
isStarted
in interface ActiveMQComponent
public void onNotification(Notification notification)
onNotification
in interface NotificationListener
public void reloadAddressInfo(AddressInfo addressInfo) throws Exception
reloadAddressInfo
in interface PostOffice
Exception
public boolean addAddressInfo(AddressInfo addressInfo) throws Exception
addAddressInfo
in interface PostOffice
Exception
public QueueBinding updateQueue(SimpleString name, RoutingType routingType, Integer maxConsumers, Boolean purgeOnNoConsumers, Boolean exclusive) throws Exception
updateQueue
in interface PostOffice
Exception
public AddressInfo updateAddressInfo(SimpleString addressName, EnumSet<RoutingType> routingTypes) throws Exception
updateAddressInfo
in interface PostOffice
Exception
public AddressInfo removeAddressInfo(SimpleString address) throws Exception
removeAddressInfo
in interface PostOffice
Exception
public AddressInfo removeAddressInfo(SimpleString address, boolean force) throws Exception
removeAddressInfo
in interface PostOffice
Exception
public AddressInfo getAddressInfo(SimpleString addressName)
getAddressInfo
in interface PostOffice
public List<Queue> listQueuesForAddress(SimpleString address) throws Exception
listQueuesForAddress
in interface PostOffice
Exception
public void addBinding(Binding binding) throws Exception
addBinding
in interface PostOffice
Exception
public Binding removeBinding(SimpleString uniqueName, Transaction tx, boolean deleteData) throws Exception
removeBinding
in interface PostOffice
Exception
public boolean isAddressBound(SimpleString address) throws Exception
isAddressBound
in interface PostOffice
Exception
public Bindings getBindingsForAddress(SimpleString address) throws Exception
PostOffice
getBindingsForAddress
in interface PostOffice
Exception
public Bindings lookupBindingsForAddress(SimpleString address) throws Exception
PostOffice
lookupBindingsForAddress
in interface PostOffice
Exception
public Binding getBinding(SimpleString name)
getBinding
in interface PostOffice
public Bindings getMatchingBindings(SimpleString address) throws Exception
getMatchingBindings
in interface PostOffice
Exception
public Bindings getDirectBindings(SimpleString address) throws Exception
getDirectBindings
in interface PostOffice
Exception
public Map<SimpleString,Binding> getAllBindings()
getAllBindings
in interface PostOffice
public RoutingStatus route(Message message, boolean direct) throws Exception
route
in interface PostOffice
Exception
public RoutingStatus route(Message message, Transaction tx, boolean direct) throws Exception
route
in interface PostOffice
Exception
public RoutingStatus route(Message message, Transaction tx, boolean direct, boolean rejectDuplicates) throws Exception
route
in interface PostOffice
Exception
public RoutingStatus route(Message message, Transaction tx, boolean direct, boolean rejectDuplicates, Binding binding) throws Exception
route
in interface PostOffice
Exception
public RoutingStatus route(Message message, RoutingContext context, boolean direct) throws Exception
route
in interface PostOffice
Exception
public RoutingStatus route(Message message, RoutingContext context, boolean direct, boolean rejectDuplicates, Binding bindingMove) throws Exception
route
in interface PostOffice
Exception
public MessageReference reroute(Message message, Queue queue, Transaction tx) throws Exception
reroute
in interface PostOffice
Exception
public Pair<RoutingContext,Message> redistribute(Message message, Queue originatingQueue, Transaction tx) throws Exception
redistribute
in interface PostOffice
Exception
public DuplicateIDCache getDuplicateIDCache(SimpleString address)
getDuplicateIDCache
in interface PostOffice
public ConcurrentMap<SimpleString,DuplicateIDCache> getDuplicateIDCaches()
public Object getNotificationLock()
getNotificationLock
in interface PostOffice
public Set<SimpleString> getAddresses()
getAddresses
in interface PostOffice
public void updateMessageLoadBalancingTypeForAddress(SimpleString address, MessageLoadBalancingType messageLoadBalancingType) throws Exception
updateMessageLoadBalancingTypeForAddress
in interface PostOffice
Exception
public SimpleString getMatchingQueue(SimpleString address, RoutingType routingType) throws Exception
getMatchingQueue
in interface PostOffice
Exception
public SimpleString getMatchingQueue(SimpleString address, SimpleString queueName, RoutingType routingType) throws Exception
getMatchingQueue
in interface PostOffice
Exception
public void sendQueueInfoToQueue(SimpleString queueName, SimpleString address) throws Exception
sendQueueInfoToQueue
in interface PostOffice
Exception
public void processRoute(Message message, RoutingContext context, boolean direct) throws Exception
processRoute
in interface PostOffice
Exception
public void startExpiryScanner()
startExpiryScanner
in interface PostOffice
public Bindings createBindings(SimpleString address) throws Exception
createBindings
in interface BindingsFactory
Exception
public AddressManager getAddressManager()
public ActiveMQServer getServer()
Copyright © 2018 JBoss by Red Hat. All rights reserved.