org.apache.activemq.broker.jmx
Class ManagedTempTopicRegion
java.lang.Object
org.apache.activemq.broker.region.AbstractRegion
org.apache.activemq.broker.region.TempTopicRegion
org.apache.activemq.broker.jmx.ManagedTempTopicRegion
- All Implemented Interfaces:
- Region, Service
public class ManagedTempTopicRegion
- extends TempTopicRegion
Fields inherited from class org.apache.activemq.broker.region.AbstractRegion |
autoCreateDestinations, broker, consumerChangeMutexMap, destinationFactory, destinationMap, destinations, destinationsMutex, destinationStatistics, memoryManager, subscriptions, taskRunnerFactory |
Methods inherited from class org.apache.activemq.broker.region.AbstractRegion |
acknowledge, addConsumer, addDestination, gc, getDestinationMap, getDestinations, getDurableDestinations, getInactiveDestinations, isAutoCreateDestinations, lookup, messagePull, processDispatchNotification, removeConsumer, removeSubscription, send, setAutoCreateDestinations, start, stop |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
ManagedTempTopicRegion
public ManagedTempTopicRegion(ManagedRegionBroker regionBroker,
DestinationStatistics destinationStatistics,
UsageManager memoryManager,
TaskRunnerFactory taskRunnerFactory,
DestinationFactory destinationFactory)
createSubscription
protected Subscription createSubscription(ConnectionContext context,
ConsumerInfo info)
throws javax.jms.JMSException
- Overrides:
createSubscription
in class TempTopicRegion
- Throws:
javax.jms.JMSException
destroySubscription
protected void destroySubscription(Subscription sub)
- Overrides:
destroySubscription
in class AbstractRegion
createDestination
protected Destination createDestination(ConnectionContext context,
ActiveMQDestination destination)
throws java.lang.Exception
- Overrides:
createDestination
in class AbstractRegion
- Throws:
java.lang.Exception
removeDestination
public void removeDestination(ConnectionContext context,
ActiveMQDestination destination,
long timeout)
throws java.lang.Exception
- Description copied from interface:
Region
- Used 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:
removeDestination
in interface Region
- Overrides:
removeDestination
in class TempTopicRegion
- 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:
java.lang.Exception
- TODO
Copyright © 2011 Apache Software Foundation. All Rights Reserved.