Class DestinationFactoryImpl
- java.lang.Object
-
- org.apache.activemq.broker.region.DestinationFactory
-
- org.apache.activemq.broker.region.DestinationFactoryImpl
-
public class DestinationFactoryImpl extends DestinationFactory
Creates standard ActiveMQ implementations ofDestination.- Author:
- fateev@amazon.com
-
-
Field Summary
Fields Modifier and Type Field Description protected RegionBrokerbrokerprotected PersistenceAdapterpersistenceAdapterprotected TaskRunnerFactorytaskRunnerFactory
-
Constructor Summary
Constructors Constructor Description DestinationFactoryImpl(BrokerService brokerService, TaskRunnerFactory taskRunnerFactory, PersistenceAdapter persistenceAdapter)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidconfigureQueue(Queue queue, ActiveMQDestination destination)protected voidconfigureTopic(Topic topic, ActiveMQDestination destination)DestinationcreateDestination(ConnectionContext context, ActiveMQDestination destination, DestinationStatistics destinationStatistics)Create destination implementation.SubscriptionInfo[]getAllDurableSubscriptions(ActiveMQTopic topic)Lists all the durable subscirptions for a given destination.Set<ActiveMQDestination>getDestinations()Returns a set of all theActiveMQDestinationobjects that the persistence store is aware exist.longgetLastMessageBrokerSequenceId()PersistenceAdaptergetPersistenceAdapter()voidremoveDestination(Destination dest)voidsetRegionBroker(RegionBroker broker)
-
-
-
Field Detail
-
taskRunnerFactory
protected final TaskRunnerFactory taskRunnerFactory
-
persistenceAdapter
protected final PersistenceAdapter persistenceAdapter
-
broker
protected RegionBroker broker
-
-
Constructor Detail
-
DestinationFactoryImpl
public DestinationFactoryImpl(BrokerService brokerService, TaskRunnerFactory taskRunnerFactory, PersistenceAdapter persistenceAdapter)
-
-
Method Detail
-
setRegionBroker
public void setRegionBroker(RegionBroker broker)
- Specified by:
setRegionBrokerin classDestinationFactory
-
getDestinations
public Set<ActiveMQDestination> getDestinations()
Description copied from class:DestinationFactoryReturns a set of all theActiveMQDestinationobjects that the persistence store is aware exist.- Specified by:
getDestinationsin classDestinationFactory
-
createDestination
public Destination createDestination(ConnectionContext context, ActiveMQDestination destination, DestinationStatistics destinationStatistics) throws Exception
Description copied from class:DestinationFactoryCreate destination implementation.- Specified by:
createDestinationin classDestinationFactory- Returns:
- instance of
QueueorTopic - Throws:
Exception
-
removeDestination
public void removeDestination(Destination dest)
- Specified by:
removeDestinationin classDestinationFactory
-
configureQueue
protected void configureQueue(Queue queue, ActiveMQDestination destination)
-
configureTopic
protected void configureTopic(Topic topic, ActiveMQDestination destination)
-
getLastMessageBrokerSequenceId
public long getLastMessageBrokerSequenceId() throws IOException- Specified by:
getLastMessageBrokerSequenceIdin classDestinationFactory- Throws:
IOException
-
getPersistenceAdapter
public PersistenceAdapter getPersistenceAdapter()
-
getAllDurableSubscriptions
public SubscriptionInfo[] getAllDurableSubscriptions(ActiveMQTopic topic) throws IOException
Description copied from class:DestinationFactoryLists all the durable subscirptions for a given destination.- Specified by:
getAllDurableSubscriptionsin classDestinationFactory- Throws:
IOException
-
-