Package org.apache.activemq.util
Class NetworkBridgeUtils
- java.lang.Object
-
- org.apache.activemq.util.NetworkBridgeUtils
-
public class NetworkBridgeUtils extends Object
-
-
Constructor Summary
Constructors Constructor Description NetworkBridgeUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ActiveMQDestinationfindMatchingDestination(ActiveMQDestination[] dests, ActiveMQDestination destination)static BrokerSubscriptionInfogetBrokerSubscriptionInfo(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 booleanisDestForcedDurable(ActiveMQDestination destination)static booleanisForcedDurable(ConsumerInfo info, List<ActiveMQDestination> dynamicallyIncludedDestinations)static booleanisForcedDurable(ConsumerInfo info, ActiveMQDestination[] dynamicallyIncludedDestinations, ActiveMQDestination[] staticallyIncludedDestinations)static booleanmatchesDestinations(ActiveMQDestination[] dests, ActiveMQDestination destination)static booleanmatchesNetworkConfig(NetworkBridgeConfiguration config, ActiveMQDestination destination)
-
-
-
Method Detail
-
getBrokerSubscriptionInfo
public static 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(ConsumerInfo info, List<ActiveMQDestination> dynamicallyIncludedDestinations)
-
isForcedDurable
public static boolean isForcedDurable(ConsumerInfo info, ActiveMQDestination[] dynamicallyIncludedDestinations, ActiveMQDestination[] staticallyIncludedDestinations)
-
matchesNetworkConfig
public static boolean matchesNetworkConfig(NetworkBridgeConfiguration config, ActiveMQDestination destination)
-
matchesDestinations
public static boolean matchesDestinations(ActiveMQDestination[] dests, ActiveMQDestination destination)
-
findMatchingDestination
public static ActiveMQDestination findMatchingDestination(ActiveMQDestination[] dests, ActiveMQDestination destination)
-
isDestForcedDurable
public static boolean isDestForcedDurable(ActiveMQDestination destination)
-
-