Class TempQueueRegion
- java.lang.Object
-
- org.apache.activemq.broker.region.AbstractRegion
-
- org.apache.activemq.broker.region.AbstractTempRegion
-
- org.apache.activemq.broker.region.TempQueueRegion
-
- Direct Known Subclasses:
ManagedTempQueueRegion
public class TempQueueRegion extends AbstractTempRegion
-
-
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 TempQueueRegion(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)voidprocessDispatchNotification(MessageDispatchNotification messageDispatchNotification)Process a notification of a dispatch - used by a Slave BrokervoidremoveDestination(ConnectionContext context, ActiveMQDestination destination, long timeout)Used to destroy a destination.StringtoString()-
Methods inherited from class org.apache.activemq.broker.region.AbstractTempRegion
createDestination, dispose, stop
-
Methods inherited from class org.apache.activemq.broker.region.AbstractRegion
acknowledge, addConsumer, addDestination, addProducer, addSubscriptionsForDestination, destroySubscription, gc, getDestinationMap, getDestinations, getDurableDestinations, getInactiveDestinations, getSubscriptions, isAutoCreateDestinations, lookup, messagePull, processConsumerControl, processDispatchNotificationViaDestination, reapplyInterceptor, removeConsumer, removeProducer, removeSubscription, send, setAutoCreateDestinations, start, updateRegionDestCounts, validateMaxDestinations
-
-
-
-
Constructor Detail
-
TempQueueRegion
public TempQueueRegion(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
-
removeDestination
public void removeDestination(ConnectionContext context, ActiveMQDestination destination, long timeout) throws Exception
Description copied from interface:RegionUsed to destroy a destination. This should try to quiesce use of the destination up to the timeout allotted time before removing the destination. This will remove all persistent messages associated with the destination.- Specified by:
removeDestinationin interfaceRegion- Overrides:
removeDestinationin classAbstractRegion- Parameters:
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 quiesce- Throws:
Exception- TODO
-
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
-
-