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 Subscription
createSubscription(ConnectionContext context, ConsumerInfo info)
protected Set<ActiveMQDestination>
getInactiveDestinations()
void
processDispatchNotification(MessageDispatchNotification messageDispatchNotification)
Process a notification of a dispatch - used by a Slave BrokerString
toString()
-
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:
createSubscription
in classAbstractRegion
- Throws:
JMSException
-
getInactiveDestinations
protected Set<ActiveMQDestination> getInactiveDestinations()
- Overrides:
getInactiveDestinations
in classAbstractRegion
- Returns:
- all Destinations that don't have active consumers
-
processDispatchNotification
public void processDispatchNotification(MessageDispatchNotification messageDispatchNotification) throws Exception
Description copied from interface:Region
Process a notification of a dispatch - used by a Slave Broker- Specified by:
processDispatchNotification
in interfaceRegion
- Overrides:
processDispatchNotification
in classAbstractRegion
- Throws:
Exception
- TODO
-
-