Message[] msgs = subscriptionRecoveryPolicy.browse(getActiveMQDestination()); if (msgs != null) { for (int i = 0; i < msgs.length && browseList.size() < max; i++) { LOG.warn("Failed to browse Topic: {}", getActiveMQDestination().getPhysicalName(), e);
@Override public void start() throws Exception { if (started.compareAndSet(false, true)) { this.subscriptionRecoveryPolicy.start(); if (memoryUsage != null) { memoryUsage.start(); } if (getExpireMessagesPeriod() > 0 && !AdvisorySupport.isAdvisoryTopic(getActiveMQDestination())) { scheduler.executePeriodically(expireMessagesTask, getExpireMessagesPeriod()); } } }
info.setSelector(subscription.getConsumerInfo().getSelector()); info.setSubscriptionName(subscriptionName); info.setDestination(getActiveMQDestination()); info.setNoLocal(subscription.getConsumerInfo().isNoLocal());
getActiveMQDestination().getQualifiedName(), memoryUsage.getLimit()); } else { LOG.debug("{}, Usage Manager memory limit reached {}. Producers will be throttled to the rate at which messages are removed from this destination to prevent flooding it. See http://activemq.apache.org/producer-flow-control.html for more info.", getActiveMQDestination().getQualifiedName(), memoryUsage.getLimit()); throw new javax.jms.ResourceAllocationException("Usage Manager memory limit (" + memoryUsage.getLimit() + ") reached. Rejecting send for producer (" + message.getProducerId() + ") to prevent flooding " + getActiveMQDestination().getQualifiedName() + "." + " See http://activemq.apache.org/producer-flow-control.html for more info"); + message.getProducerId() + ") to prevent flooding " + getActiveMQDestination().getQualifiedName() + "." + " See http://activemq.apache.org/producer-flow-control.html for more info");
if (topic != null) { final Message[] messages = topic.getSubscriptionRecoveryPolicy().browse(topic.getActiveMQDestination());
final String logMessage = "Persistent store is Full, " + getStoreUsageHighWaterMark() + "% of " + systemUsage.getStoreUsage().getLimit() + ". Stopping producer (" + message.getProducerId() + ") to prevent flooding " + getActiveMQDestination().getQualifiedName() + "." + " See http://activemq.apache.org/producer-flow-control.html for more info"; if (!context.isNetworkConnection() && systemUsage.isSendFailIfNoSpace()) {
Message[] msgs = subscriptionRecoveryPolicy.browse(getActiveMQDestination()); if (msgs != null) { for (int i = 0; i < msgs.length; i++) { LOG.warn("Failed to browse Topic: " + getActiveMQDestination().getPhysicalName(), e);
Message[] msgs = subscriptionRecoveryPolicy.browse(getActiveMQDestination()); if (msgs != null) { for (int i = 0; i < msgs.length && browseList.size() < max; i++) { LOG.warn("Failed to browse Topic: {}", getActiveMQDestination().getPhysicalName(), e);
Message[] msgs = subscriptionRecoveryPolicy.browse(getActiveMQDestination()); if (msgs != null) { for (int i = 0; i < msgs.length && browseList.size() < max; i++) { LOG.warn("Failed to browse Topic: {}", getActiveMQDestination().getPhysicalName(), e);
@Override public void start() throws Exception { if (started.compareAndSet(false, true)) { this.subscriptionRecoveryPolicy.start(); if (memoryUsage != null) { memoryUsage.start(); } if (getExpireMessagesPeriod() > 0 && !AdvisorySupport.isAdvisoryTopic(getActiveMQDestination())) { scheduler.executePeriodically(expireMessagesTask, getExpireMessagesPeriod()); } } }
Message[] msgs = subscriptionRecoveryPolicy.browse(getActiveMQDestination()); if (msgs != null) { for (int i = 0; i < msgs.length && browseList.size() < max; i++) { LOG.warn("Failed to browse Topic: {}", getActiveMQDestination().getPhysicalName(), e);
@Override public void start() throws Exception { if (started.compareAndSet(false, true)) { this.subscriptionRecoveryPolicy.start(); if (memoryUsage != null) { memoryUsage.start(); } if (getExpireMessagesPeriod() > 0 && !AdvisorySupport.isAdvisoryTopic(getActiveMQDestination())) { scheduler.executePeriodically(expireMessagesTask, getExpireMessagesPeriod()); } } }
@Override public void start() throws Exception { if (started.compareAndSet(false, true)) { this.subscriptionRecoveryPolicy.start(); if (memoryUsage != null) { memoryUsage.start(); } if (getExpireMessagesPeriod() > 0 && !AdvisorySupport.isAdvisoryTopic(getActiveMQDestination())) { scheduler.executePeriodically(expireMessagesTask, getExpireMessagesPeriod()); } } }
if (topic != null) { final Message[] messages = topic.getSubscriptionRecoveryPolicy().browse(topic.getActiveMQDestination());
if (topic != null) { final Message[] messages = topic.getSubscriptionRecoveryPolicy().browse(topic.getActiveMQDestination());
if (topic != null) { final Message[] messages = topic.getSubscriptionRecoveryPolicy().browse(topic.getActiveMQDestination());
info.setSelector(selector); info.setSubscriptionName(subscriptionName); info.setDestination(getActiveMQDestination());
final String logMessage = "Usage Manager Store is Full, " + getStoreUsageHighWaterMark() + "% of " + systemUsage.getStoreUsage().getLimit() + ". Stopping producer (" + message.getProducerId() + ") to prevent flooding " + getActiveMQDestination().getQualifiedName() + "." + " See http://activemq.apache.org/producer-flow-control.html for more info"; if (systemUsage.isSendFailIfNoSpace()) {
final String logMessage = "Persistent store is Full, " + getStoreUsageHighWaterMark() + "% of " + systemUsage.getStoreUsage().getLimit() + ". Stopping producer (" + message.getProducerId() + ") to prevent flooding " + getActiveMQDestination().getQualifiedName() + "." + " See http://activemq.apache.org/producer-flow-control.html for more info"; if (!context.isNetworkConnection() && systemUsage.isSendFailIfNoSpace()) {
final String logMessage = "Persistent store is Full, " + getStoreUsageHighWaterMark() + "% of " + systemUsage.getStoreUsage().getLimit() + ". Stopping producer (" + message.getProducerId() + ") to prevent flooding " + getActiveMQDestination().getQualifiedName() + "." + " See http://activemq.apache.org/producer-flow-control.html for more info"; if (!context.isNetworkConnection() && systemUsage.isSendFailIfNoSpace()) {