Class DestinationFactoryImpl
java.lang.Object
org.apache.activemq.broker.region.DestinationFactory
org.apache.activemq.broker.region.DestinationFactoryImpl
Creates standard ActiveMQ implementations of
Destination.- Author:
- fateev@amazon.com
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected RegionBrokerprotected final PersistenceAdapterprotected final org.apache.activemq.thread.TaskRunnerFactory -
Constructor Summary
ConstructorsConstructorDescriptionDestinationFactoryImpl(BrokerService brokerService, org.apache.activemq.thread.TaskRunnerFactory taskRunnerFactory, PersistenceAdapter persistenceAdapter) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidconfigureQueue(Queue queue, org.apache.activemq.command.ActiveMQDestination destination) protected voidconfigureTopic(Topic topic, org.apache.activemq.command.ActiveMQDestination destination) createDestination(ConnectionContext context, org.apache.activemq.command.ActiveMQDestination destination, DestinationStatistics destinationStatistics) Create destination implementation.org.apache.activemq.command.SubscriptionInfo[]getAllDurableSubscriptions(org.apache.activemq.command.ActiveMQTopic topic) Lists all the durable subscirptions for a given destination.Set<org.apache.activemq.command.ActiveMQDestination>Returns a set of all theActiveMQDestinationobjects that the persistence store is aware exist.longvoidremoveDestination(Destination dest) voidsetRegionBroker(RegionBroker broker)
-
Field Details
-
taskRunnerFactory
protected final org.apache.activemq.thread.TaskRunnerFactory taskRunnerFactory -
persistenceAdapter
-
broker
-
-
Constructor Details
-
DestinationFactoryImpl
public DestinationFactoryImpl(BrokerService brokerService, org.apache.activemq.thread.TaskRunnerFactory taskRunnerFactory, PersistenceAdapter persistenceAdapter)
-
-
Method Details
-
setRegionBroker
- Specified by:
setRegionBrokerin classDestinationFactory
-
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, org.apache.activemq.command.ActiveMQDestination destination, DestinationStatistics destinationStatistics) throws Exception Description copied from class:DestinationFactoryCreate destination implementation.- Specified by:
createDestinationin classDestinationFactory- Returns:
- instance of
QueueorTopic - Throws:
Exception
-
removeDestination
- Specified by:
removeDestinationin classDestinationFactory
-
configureQueue
protected void configureQueue(Queue queue, org.apache.activemq.command.ActiveMQDestination destination) -
configureTopic
protected void configureTopic(Topic topic, org.apache.activemq.command.ActiveMQDestination destination) -
getLastMessageBrokerSequenceId
- Specified by:
getLastMessageBrokerSequenceIdin classDestinationFactory- Throws:
IOException
-
getPersistenceAdapter
-
getAllDurableSubscriptions
public org.apache.activemq.command.SubscriptionInfo[] getAllDurableSubscriptions(org.apache.activemq.command.ActiveMQTopic topic) throws IOException Description copied from class:DestinationFactoryLists all the durable subscirptions for a given destination.- Specified by:
getAllDurableSubscriptionsin classDestinationFactory- Throws:
IOException
-