Package org.apache.activemq.broker.jmx
Class ManagedTempQueueRegion
java.lang.Object
org.apache.activemq.broker.region.AbstractRegion
org.apache.activemq.broker.region.AbstractTempRegion
org.apache.activemq.broker.region.TempQueueRegion
org.apache.activemq.broker.jmx.ManagedTempQueueRegion
- All Implemented Interfaces:
Region,org.apache.activemq.Service
-
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
ConstructorsConstructorDescriptionManagedTempQueueRegion(ManagedRegionBroker broker, DestinationStatistics destinationStatistics, SystemUsage memoryManager, org.apache.activemq.thread.TaskRunnerFactory taskRunnerFactory, DestinationFactory destinationFactory) -
Method Summary
Modifier and TypeMethodDescriptionprotected DestinationcreateDestination(ConnectionContext context, org.apache.activemq.command.ActiveMQDestination destination) protected SubscriptioncreateSubscription(ConnectionContext context, org.apache.activemq.command.ConsumerInfo info) protected voidvoidremoveDestination(ConnectionContext context, org.apache.activemq.command.ActiveMQDestination destination, long timeout) Used to destroy a destination.Methods inherited from class org.apache.activemq.broker.region.TempQueueRegion
processDispatchNotification, toStringMethods inherited from class org.apache.activemq.broker.region.AbstractTempRegion
dispose, stopMethods inherited from class org.apache.activemq.broker.region.AbstractRegion
acknowledge, addConsumer, addDestination, addProducer, addSubscriptionsForDestination, gc, getDestinationMap, getDestinations, getDurableDestinations, getInactiveDestinations, getSubscriptions, isAutoCreateDestinations, lookup, messagePull, processConsumerControl, processDispatchNotificationViaDestination, reapplyInterceptor, removeConsumer, removeProducer, removeSubscription, send, setAutoCreateDestinations, start, updateRegionDestCounts, validateMaxDestinations
-
Constructor Details
-
ManagedTempQueueRegion
public ManagedTempQueueRegion(ManagedRegionBroker broker, DestinationStatistics destinationStatistics, SystemUsage memoryManager, org.apache.activemq.thread.TaskRunnerFactory taskRunnerFactory, DestinationFactory destinationFactory)
-
-
Method Details
-
createSubscription
protected Subscription createSubscription(ConnectionContext context, org.apache.activemq.command.ConsumerInfo info) throws jakarta.jms.JMSException - Overrides:
createSubscriptionin classTempQueueRegion- Throws:
jakarta.jms.JMSException
-
destroySubscription
- Overrides:
destroySubscriptionin classAbstractRegion
-
createDestination
protected Destination createDestination(ConnectionContext context, org.apache.activemq.command.ActiveMQDestination destination) throws Exception - Overrides:
createDestinationin classAbstractTempRegion- Throws:
Exception
-
removeDestination
public void removeDestination(ConnectionContext context, org.apache.activemq.command.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 classTempQueueRegion- 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
-