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 Details

    • DestinationFactory

      public DestinationFactory()
  • Method Details

    • 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 the ActiveMQDestination objects that the persistence store is aware exist.
    • getAllDurableSubscriptions

      public abstract org.apache.activemq.command.SubscriptionInfo[] getAllDurableSubscriptions(org.apache.activemq.command.ActiveMQTopic topic) throws IOException
      Lists 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)