Examples of SubQueueSelectorCacheBroker


Examples of org.apache.activemq.plugin.SubQueueSelectorCacheBroker

    private boolean tryMatchingCachedSubs(final Broker broker, Destination dest, MessageEvaluationContext msgContext) {
        boolean matches = false;
        LOG.debug("No active consumer match found. Will try cache if configured...");

        //retrieve the specific plugin class and lookup the selector for the destination.
        final SubQueueSelectorCacheBroker cache = getSubQueueSelectorCacheBrokerPlugin(broker);

        if (cache != null) {
            final String selector = cache.getSelector(dest.getActiveMQDestination().getQualifiedName());
            if (selector != null) {
                try {
                    final BooleanExpression expression = getExpression(selector);
                    matches = expression.matches(msgContext);
                } catch (Exception e) {
View Full Code Here

Examples of org.apache.activemq.plugin.SubQueueSelectorCacheBroker

    private boolean tryMatchingCachedSubs(final Broker broker, Destination dest, MessageEvaluationContext msgContext) {
        boolean matches = false;
        LOG.debug("No active consumer match found. Will try cache if configured...");

        //retrieve the specific plugin class and lookup the selector for the destination.
        final SubQueueSelectorCacheBroker cache = getSubQueueSelectorCacheBrokerPlugin(broker);

        if (cache != null) {
            final Set<String> selectors = cache.getSelector(dest.getActiveMQDestination().getQualifiedName());
            for (String selector : selectors) {
                try {
                    final BooleanExpression expression = getExpression(selector);
                    matches = expression.matches(msgContext);
                    if (matches) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.