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 ActiveMQComponentExceptionpublic void stop()
throws Exception
stop in interface ActiveMQComponentExceptionpublic boolean isStarted()
isStarted in interface ActiveMQComponentpublic void onNotification(Notification notification)
onNotification in interface NotificationListenerpublic void reloadAddressInfo(AddressInfo addressInfo) throws Exception
reloadAddressInfo in interface PostOfficeExceptionpublic boolean addAddressInfo(AddressInfo addressInfo) throws Exception
addAddressInfo in interface PostOfficeExceptionpublic QueueBinding updateQueue(SimpleString name, RoutingType routingType, Integer maxConsumers, Boolean purgeOnNoConsumers, Boolean exclusive) throws Exception
updateQueue in interface PostOfficeExceptionpublic AddressInfo updateAddressInfo(SimpleString addressName, EnumSet<RoutingType> routingTypes) throws Exception
updateAddressInfo in interface PostOfficeExceptionpublic AddressInfo removeAddressInfo(SimpleString address) throws Exception
removeAddressInfo in interface PostOfficeExceptionpublic AddressInfo removeAddressInfo(SimpleString address, boolean force) throws Exception
removeAddressInfo in interface PostOfficeExceptionpublic AddressInfo getAddressInfo(SimpleString addressName)
getAddressInfo in interface PostOfficepublic List<Queue> listQueuesForAddress(SimpleString address) throws Exception
listQueuesForAddress in interface PostOfficeExceptionpublic void addBinding(Binding binding) throws Exception
addBinding in interface PostOfficeExceptionpublic Binding removeBinding(SimpleString uniqueName, Transaction tx, boolean deleteData) throws Exception
removeBinding in interface PostOfficeExceptionpublic boolean isAddressBound(SimpleString address) throws Exception
isAddressBound in interface PostOfficeExceptionpublic Bindings getBindingsForAddress(SimpleString address) throws Exception
PostOfficegetBindingsForAddress in interface PostOfficeExceptionpublic Bindings lookupBindingsForAddress(SimpleString address) throws Exception
PostOfficelookupBindingsForAddress in interface PostOfficeExceptionpublic Binding getBinding(SimpleString name)
getBinding in interface PostOfficepublic Bindings getMatchingBindings(SimpleString address) throws Exception
getMatchingBindings in interface PostOfficeExceptionpublic Bindings getDirectBindings(SimpleString address) throws Exception
getDirectBindings in interface PostOfficeExceptionpublic Map<SimpleString,Binding> getAllBindings()
getAllBindings in interface PostOfficepublic RoutingStatus route(Message message, boolean direct) throws Exception
route in interface PostOfficeExceptionpublic RoutingStatus route(Message message, Transaction tx, boolean direct) throws Exception
route in interface PostOfficeExceptionpublic RoutingStatus route(Message message, Transaction tx, boolean direct, boolean rejectDuplicates) throws Exception
route in interface PostOfficeExceptionpublic RoutingStatus route(Message message, Transaction tx, boolean direct, boolean rejectDuplicates, Binding binding) throws Exception
route in interface PostOfficeExceptionpublic RoutingStatus route(Message message, RoutingContext context, boolean direct) throws Exception
route in interface PostOfficeExceptionpublic RoutingStatus route(Message message, RoutingContext context, boolean direct, boolean rejectDuplicates, Binding bindingMove) throws Exception
route in interface PostOfficeExceptionpublic MessageReference reroute(Message message, Queue queue, Transaction tx) throws Exception
reroute in interface PostOfficeExceptionpublic Pair<RoutingContext,Message> redistribute(Message message, Queue originatingQueue, Transaction tx) throws Exception
redistribute in interface PostOfficeExceptionpublic DuplicateIDCache getDuplicateIDCache(SimpleString address)
getDuplicateIDCache in interface PostOfficepublic ConcurrentMap<SimpleString,DuplicateIDCache> getDuplicateIDCaches()
public Object getNotificationLock()
getNotificationLock in interface PostOfficepublic Set<SimpleString> getAddresses()
getAddresses in interface PostOfficepublic void updateMessageLoadBalancingTypeForAddress(SimpleString address, MessageLoadBalancingType messageLoadBalancingType) throws Exception
updateMessageLoadBalancingTypeForAddress in interface PostOfficeExceptionpublic SimpleString getMatchingQueue(SimpleString address, RoutingType routingType) throws Exception
getMatchingQueue in interface PostOfficeExceptionpublic SimpleString getMatchingQueue(SimpleString address, SimpleString queueName, RoutingType routingType) throws Exception
getMatchingQueue in interface PostOfficeExceptionpublic void sendQueueInfoToQueue(SimpleString queueName, SimpleString address) throws Exception
sendQueueInfoToQueue in interface PostOfficeExceptionpublic void processRoute(Message message, RoutingContext context, boolean direct) throws Exception
processRoute in interface PostOfficeExceptionpublic void startExpiryScanner()
startExpiryScanner in interface PostOfficepublic Bindings createBindings(SimpleString address) throws Exception
createBindings in interface BindingsFactoryExceptionpublic AddressManager getAddressManager()
public ActiveMQServer getServer()
Copyright © 2019 JBoss by Red Hat. All rights reserved.