org.apache.activemq.broker.region
Class AbstractTempRegion

java.lang.Object
  extended by org.apache.activemq.broker.region.AbstractRegion
      extended by org.apache.activemq.broker.region.AbstractTempRegion
All Implemented Interfaces:
Region, Service
Direct Known Subclasses:
TempQueueRegion, TempTopicRegion

public abstract class AbstractTempRegion
extends AbstractRegion


Field Summary
 
Fields inherited from class org.apache.activemq.broker.region.AbstractRegion
autoCreateDestinations, broker, consumerChangeMutexMap, destinationFactory, destinationMap, destinations, destinationsLock, destinationStatistics, started, subscriptions, taskRunnerFactory, usageManager
 
Constructor Summary
AbstractTempRegion(RegionBroker broker, DestinationStatistics destinationStatistics, SystemUsage memoryManager, TaskRunnerFactory taskRunnerFactory, DestinationFactory destinationFactory)
           
 
Method Summary
protected  Destination createDestination(ConnectionContext context, ActiveMQDestination destination)
           
protected  void dispose(ConnectionContext context, Destination dest)
           
protected abstract  Destination doCreateDestination(ConnectionContext context, ActiveMQDestination destination)
           
 void stop()
           
 
Methods inherited from class org.apache.activemq.broker.region.AbstractRegion
acknowledge, addConsumer, addDestination, addProducer, addSubscriptionsForDestination, createSubscription, destroySubscription, gc, getDestinationMap, getDestinations, getDurableDestinations, getInactiveDestinations, getSubscriptions, isAutoCreateDestinations, lookup, messagePull, processConsumerControl, processDispatchNotification, processDispatchNotificationViaDestination, removeConsumer, removeDestination, removeProducer, removeSubscription, send, setAutoCreateDestinations, start
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractTempRegion

public AbstractTempRegion(RegionBroker broker,
                          DestinationStatistics destinationStatistics,
                          SystemUsage memoryManager,
                          TaskRunnerFactory taskRunnerFactory,
                          DestinationFactory destinationFactory)
Parameters:
broker -
destinationStatistics -
memoryManager -
taskRunnerFactory -
destinationFactory -
Method Detail

stop

public void stop()
          throws Exception
Specified by:
stop in interface Service
Overrides:
stop in class AbstractRegion
Throws:
Exception

doCreateDestination

protected abstract Destination doCreateDestination(ConnectionContext context,
                                                   ActiveMQDestination destination)
                                            throws Exception
Throws:
Exception

createDestination

protected Destination createDestination(ConnectionContext context,
                                        ActiveMQDestination destination)
                                 throws Exception
Overrides:
createDestination in class AbstractRegion
Throws:
Exception

dispose

protected final void dispose(ConnectionContext context,
                             Destination dest)
                      throws Exception
Overrides:
dispose in class AbstractRegion
Throws:
Exception


Copyright © 2005-2012 The Apache Software Foundation. All Rights Reserved.