Class QueueRegion
- java.lang.Object
-
- org.apache.activemq.broker.region.AbstractRegion
-
- org.apache.activemq.broker.region.QueueRegion
-
- Direct Known Subclasses:
ManagedQueueRegion
public class QueueRegion extends AbstractRegion
-
-
Field Summary
-
Fields inherited from class org.apache.activemq.broker.region.AbstractRegion
autoCreateDestinations, broker, consumerChangeMutexMap, destinationFactory, destinationMap, destinations, destinationsLock, destinationStatistics, regionStatistics, started, subscriptions, taskRunnerFactory, usageManager
-
-
Constructor Summary
Constructors Constructor Description QueueRegion(RegionBroker broker, DestinationStatistics destinationStatistics, SystemUsage memoryManager, TaskRunnerFactory taskRunnerFactory, DestinationFactory destinationFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected SubscriptioncreateSubscription(ConnectionContext context, ConsumerInfo info)protected Set<ActiveMQDestination>getInactiveDestinations()voidprocessDispatchNotification(MessageDispatchNotification messageDispatchNotification)Process a notification of a dispatch - used by a Slave BrokerStringtoString()-
Methods inherited from class org.apache.activemq.broker.region.AbstractRegion
acknowledge, addConsumer, addDestination, addProducer, addSubscriptionsForDestination, createDestination, destroySubscription, dispose, gc, getDestinationMap, getDestinations, getDurableDestinations, getSubscriptions, isAutoCreateDestinations, lookup, messagePull, processConsumerControl, processDispatchNotificationViaDestination, reapplyInterceptor, removeConsumer, removeDestination, removeProducer, removeSubscription, send, setAutoCreateDestinations, start, stop, updateRegionDestCounts, validateMaxDestinations
-
-
-
-
Constructor Detail
-
QueueRegion
public QueueRegion(RegionBroker broker, DestinationStatistics destinationStatistics, SystemUsage memoryManager, TaskRunnerFactory taskRunnerFactory, DestinationFactory destinationFactory)
-
-
Method Detail
-
createSubscription
protected Subscription createSubscription(ConnectionContext context, ConsumerInfo info) throws JMSException
- Specified by:
createSubscriptionin classAbstractRegion- Throws:
JMSException
-
getInactiveDestinations
protected Set<ActiveMQDestination> getInactiveDestinations()
- Overrides:
getInactiveDestinationsin classAbstractRegion- Returns:
- all Destinations that don't have active consumers
-
processDispatchNotification
public void processDispatchNotification(MessageDispatchNotification messageDispatchNotification) throws Exception
Description copied from interface:RegionProcess a notification of a dispatch - used by a Slave Broker- Specified by:
processDispatchNotificationin interfaceRegion- Overrides:
processDispatchNotificationin classAbstractRegion- Throws:
Exception- TODO
-
-