Class DestinationFactory
- java.lang.Object
-
- org.apache.activemq.broker.region.DestinationFactory
-
- Direct Known Subclasses:
DestinationFactoryImpl
public abstract class DestinationFactory extends Object
Used to create Destinations. One instance of DestinationFactory is used per BrokerService.- Author:
- fateev@amazon.com
-
-
Constructor Summary
Constructors Constructor Description DestinationFactory()
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract DestinationcreateDestination(ConnectionContext context, org.apache.activemq.command.ActiveMQDestination destination, DestinationStatistics destinationStatistics)Create destination implementation.abstract org.apache.activemq.command.SubscriptionInfo[]getAllDurableSubscriptions(org.apache.activemq.command.ActiveMQTopic topic)Lists all the durable subscirptions for a given destination.abstract Set<org.apache.activemq.command.ActiveMQDestination>getDestinations()Returns a set of all theActiveMQDestinationobjects that the persistence store is aware exist.abstract longgetLastMessageBrokerSequenceId()abstract voidremoveDestination(Destination dest)abstract voidsetRegionBroker(RegionBroker regionBroker)
-
-
-
Method Detail
-
createDestination
public abstract Destination createDestination(ConnectionContext context, org.apache.activemq.command.ActiveMQDestination destination, DestinationStatistics destinationStatistics) throws Exception
Create destination implementation.- Throws:
Exception
-
removeDestination
public abstract void removeDestination(Destination dest)
-
getDestinations
public abstract Set<org.apache.activemq.command.ActiveMQDestination> getDestinations()
Returns a set of all theActiveMQDestinationobjects that the persistence store is aware exist.
-
getAllDurableSubscriptions
public abstract org.apache.activemq.command.SubscriptionInfo[] getAllDurableSubscriptions(org.apache.activemq.command.ActiveMQTopic topic) throws IOExceptionLists all the durable subscirptions for a given destination.- Throws:
IOException
-
getLastMessageBrokerSequenceId
public abstract long getLastMessageBrokerSequenceId() throws IOException- Throws:
IOException
-
setRegionBroker
public abstract void setRegionBroker(RegionBroker regionBroker)
-
-