Class NetworkBridgeUtils


  • public class NetworkBridgeUtils
    extends Object
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static org.apache.activemq.command.ActiveMQDestination findMatchingDestination​(org.apache.activemq.command.ActiveMQDestination[] dests, org.apache.activemq.command.ActiveMQDestination destination)  
      static org.apache.activemq.command.BrokerSubscriptionInfo getBrokerSubscriptionInfo​(BrokerService brokerService, NetworkBridgeConfiguration config)
      Generate the BrokerSubscriptionInfo which is used to tell the broker on the other side of the network bridge which NC durable subscriptions are still needed for demand.
      static boolean isDestForcedDurable​(org.apache.activemq.command.ActiveMQDestination destination)  
      static boolean isForcedDurable​(org.apache.activemq.command.ConsumerInfo info, List<org.apache.activemq.command.ActiveMQDestination> dynamicallyIncludedDestinations)  
      static boolean isForcedDurable​(org.apache.activemq.command.ConsumerInfo info, org.apache.activemq.command.ActiveMQDestination[] dynamicallyIncludedDestinations, org.apache.activemq.command.ActiveMQDestination[] staticallyIncludedDestinations)  
      static boolean matchesDestinations​(org.apache.activemq.command.ActiveMQDestination[] dests, org.apache.activemq.command.ActiveMQDestination destination)  
      static boolean matchesNetworkConfig​(NetworkBridgeConfiguration config, org.apache.activemq.command.ActiveMQDestination destination)  
    • Constructor Detail

      • NetworkBridgeUtils

        public NetworkBridgeUtils()
    • Method Detail

      • getBrokerSubscriptionInfo

        public static org.apache.activemq.command.BrokerSubscriptionInfo getBrokerSubscriptionInfo​(BrokerService brokerService,
                                                                                                   NetworkBridgeConfiguration config)
        Generate the BrokerSubscriptionInfo which is used to tell the broker on the other side of the network bridge which NC durable subscriptions are still needed for demand.
        Parameters:
        brokerService -
        config -
        Returns:
      • isForcedDurable

        public static boolean isForcedDurable​(org.apache.activemq.command.ConsumerInfo info,
                                              List<org.apache.activemq.command.ActiveMQDestination> dynamicallyIncludedDestinations)
      • isForcedDurable

        public static boolean isForcedDurable​(org.apache.activemq.command.ConsumerInfo info,
                                              org.apache.activemq.command.ActiveMQDestination[] dynamicallyIncludedDestinations,
                                              org.apache.activemq.command.ActiveMQDestination[] staticallyIncludedDestinations)
      • matchesNetworkConfig

        public static boolean matchesNetworkConfig​(NetworkBridgeConfiguration config,
                                                   org.apache.activemq.command.ActiveMQDestination destination)
      • matchesDestinations

        public static boolean matchesDestinations​(org.apache.activemq.command.ActiveMQDestination[] dests,
                                                  org.apache.activemq.command.ActiveMQDestination destination)
      • findMatchingDestination

        public static org.apache.activemq.command.ActiveMQDestination findMatchingDestination​(org.apache.activemq.command.ActiveMQDestination[] dests,
                                                                                              org.apache.activemq.command.ActiveMQDestination destination)
      • isDestForcedDurable

        public static boolean isDestForcedDurable​(org.apache.activemq.command.ActiveMQDestination destination)