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..."); if (selectorCachePlugin != null) { final Set<String> selectors = selectorCachePlugin.getSelector(dest.getActiveMQDestination().getQualifiedName()); if (selectors != null) { for (String selector : selectors) { try { final BooleanExpression expression = getExpression(selector); matches = expression.matches(msgContext); if (matches) { return true; } } catch (Exception e) { LOG.error(e.getMessage(), e); } } } } return matches; }
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..."); if (selectorCachePlugin != null) { final Set<String> selectors = selectorCachePlugin.getSelector(dest.getActiveMQDestination().getQualifiedName()); if (selectors != null) { for (String selector : selectors) { try { final BooleanExpression expression = getExpression(selector); matches = expression.matches(msgContext); if (matches) { return true; } } catch (Exception e) { LOG.error(e.getMessage(), e); } } } } return matches; }
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..."); if (selectorCachePlugin != null) { final Set<String> selectors = selectorCachePlugin.getSelector(dest.getActiveMQDestination().getQualifiedName()); if (selectors != null) { for (String selector : selectors) { try { final BooleanExpression expression = getExpression(selector); matches = expression.matches(msgContext); if (matches) { return true; } } catch (Exception e) { LOG.error(e.getMessage(), e); } } } } return matches; }
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..."); if (selectorCachePlugin != null) { final Set<String> selectors = selectorCachePlugin.getSelector(dest.getActiveMQDestination().getQualifiedName()); if (selectors != null) { for (String selector : selectors) { try { final BooleanExpression expression = getExpression(selector); matches = expression.matches(msgContext); if (matches) { return true; } } catch (Exception e) { LOG.error(e.getMessage(), e); } } } } return matches; }