public class ManagedTopicRegion extends TopicRegion
durableSubscriptions
autoCreateDestinations, broker, consumerChangeMutexMap, destinationFactory, destinationMap, destinations, destinationsLock, destinationStatistics, started, subscriptions, taskRunnerFactory, usageManager
Constructor and Description |
---|
ManagedTopicRegion(ManagedRegionBroker broker,
DestinationStatistics destinationStatistics,
SystemUsage memoryManager,
TaskRunnerFactory taskRunnerFactory,
DestinationFactory destinationFactory) |
Modifier and Type | Method and Description |
---|---|
protected Destination |
createDestination(ConnectionContext context,
ActiveMQDestination destination) |
protected Subscription |
createSubscription(ConnectionContext context,
ConsumerInfo info) |
protected void |
destroySubscription(Subscription sub) |
void |
removeDestination(ConnectionContext context,
ActiveMQDestination destination,
long timeout)
Used to destroy a destination.
|
addConsumer, addSubscriptionsForDestination, configureTopic, createInactiveConsumerInfo, doCleanup, durableSubscriptionExists, getInactiveDestinations, isKeepDurableSubsActive, removeConsumer, removeSubscription, setKeepDurableSubsActive, stop, toString
acknowledge, addDestination, addProducer, dispose, gc, getDestinationMap, getDestinations, getDurableDestinations, getSubscriptions, isAutoCreateDestinations, lookup, messagePull, processConsumerControl, processDispatchNotification, processDispatchNotificationViaDestination, removeProducer, send, setAutoCreateDestinations, start
public ManagedTopicRegion(ManagedRegionBroker broker, DestinationStatistics destinationStatistics, SystemUsage memoryManager, TaskRunnerFactory taskRunnerFactory, DestinationFactory destinationFactory)
protected Subscription createSubscription(ConnectionContext context, ConsumerInfo info) throws javax.jms.JMSException
createSubscription
in class TopicRegion
javax.jms.JMSException
protected void destroySubscription(Subscription sub)
destroySubscription
in class AbstractRegion
protected Destination createDestination(ConnectionContext context, ActiveMQDestination destination) throws Exception
createDestination
in class AbstractRegion
Exception
public void removeDestination(ConnectionContext context, ActiveMQDestination destination, long timeout) throws Exception
Region
removeDestination
in interface Region
removeDestination
in class AbstractRegion
context
- the environment the operation is being executed under.destination
- what is being removed from the broker.timeout
- the max amount of time to wait for the destination to quiesceException
- TODOCopyright © 2005-2012 Apache Software Foundation. All Rights Reserved.