Interface Region

    • Method Detail

      • addDestination

        Destination addDestination​(ConnectionContext context,
                                   ActiveMQDestination destination,
                                   boolean createIfTemporary)
                            throws Exception
        Used to create a destination. Usually, this method is invoked as a side-effect of sending a message to a destination that does not exist yet.
        Parameters:
        context -
        destination - the destination to create.
        createIfTemporary -
        Returns:
        TODO
        Throws:
        Exception - TODO
      • removeDestination

        void removeDestination​(ConnectionContext context,
                               ActiveMQDestination destination,
                               long timeout)
                        throws Exception
        Used to destroy a destination. This should try to quiesce use of the destination up to the timeout allotted time before removing the destination. This will remove all persistent messages associated with the destination.
        Parameters:
        context - the environment the operation is being executed under.
        destination - what is being removed from the broker.
        timeout - the max amount of time to wait for the destination to quiesce
        Throws:
        Exception - TODO
      • getDestinationMap

        Map<ActiveMQDestination,​Destination> getDestinationMap()
        Returns a reference to the concurrent hash map that holds known destinations, do not modify
      • send

        void send​(ProducerBrokerExchange producerExchange,
                  Message message)
           throws Exception
        Send a message to the broker to using the specified destination. The destination specified in the message does not need to match the destination the message is sent to. This is handy in case the message is being sent to a dead letter destination.
        Parameters:
        producerExchange - the environment the operation is being executed under.
        message -
        Throws:
        Exception - TODO
      • acknowledge

        void acknowledge​(ConsumerBrokerExchange consumerExchange,
                         MessageAck ack)
                  throws Exception
        Used to acknowledge the receipt of a message by a client.
        Parameters:
        consumerExchange - the environment the operation is being executed under.
        Throws:
        Exception - TODO
      • processDispatchNotification

        void processDispatchNotification​(MessageDispatchNotification messageDispatchNotification)
                                  throws Exception
        Process a notification of a dispatch - used by a Slave Broker
        Parameters:
        messageDispatchNotification -
        Throws:
        Exception - TODO
      • gc

        void gc()
      • getDestinations

        Set<Destination> getDestinations​(ActiveMQDestination destination)
        Provide an exact or wildcard lookup of destinations in the region
        Returns:
        a set of matching destination objects.
      • reapplyInterceptor

        void reapplyInterceptor()