Tabnine Logo
ActiveMQPrefetchPolicy.getMaximumPendingMessageLimit
Code IndexAdd Tabnine to your IDE (free)

How to use
getMaximumPendingMessageLimit
method
in
org.apache.activemq.ActiveMQPrefetchPolicy

Best Java code snippets using org.apache.activemq.ActiveMQPrefetchPolicy.getMaximumPendingMessageLimit (Showing top 20 results out of 315)

origin: apache/activemq

/**
 * @throws JMSException
 */
private ActiveMQMessageConsumer createConsumer() throws JMSException {
  browseDone.set(false);
  ActiveMQPrefetchPolicy prefetchPolicy = session.connection.getPrefetchPolicy();
  return new ActiveMQMessageConsumer(session, consumerId, destination, null, selector, prefetchPolicy.getQueueBrowserPrefetch(), prefetchPolicy
    .getMaximumPendingMessageLimit(), false, true, dispatchAsync, null) {
    public void dispatch(MessageDispatch md) {
      if (md.getMessage() == null) {
        browseDone.set(true);
      } else {
        super.dispatch(md);
      }
      notifyMessageAvailable();
    }
  };
}
origin: apache/activemq

/**
 * Creates a <CODE>QueueReceiver</CODE> object to receive messages from
 * the specified queue using a message selector.
 *
 * @param queue the <CODE>Queue</CODE> to access
 * @param messageSelector only messages with properties matching the message
 *                selector expression are delivered. A value of null or an
 *                empty string indicates that there is no message selector
 *                for the message consumer.
 * @return QueueReceiver
 * @throws JMSException if the session fails to create a receiver due to
 *                 some internal error.
 * @throws InvalidDestinationException if an invalid queue is specified.
 * @throws InvalidSelectorException if the message selector is invalid.
 */
@Override
public QueueReceiver createReceiver(Queue queue, String messageSelector) throws JMSException {
  checkClosed();
  if (queue instanceof CustomDestination) {
    CustomDestination customDestination = (CustomDestination)queue;
    return customDestination.createReceiver(this, messageSelector);
  }
  ActiveMQPrefetchPolicy prefetchPolicy = this.connection.getPrefetchPolicy();
  return new ActiveMQQueueReceiver(this, getNextConsumerId(), ActiveMQMessageTransformation.transformDestination(queue), messageSelector, prefetchPolicy.getQueuePrefetch(),
                   prefetchPolicy.getMaximumPendingMessageLimit(), asyncDispatch);
}
origin: apache/activemq

.getTopicPrefetch(), prefetchPolicy.getMaximumPendingMessageLimit(), noLocal, false, asyncDispatch);
origin: apache/activemq

prefetch, prefetchPolicy.getMaximumPendingMessageLimit(), noLocal, false, isAsyncDispatch(), messageListener);
origin: apache/activemq

ActiveMQPrefetchPolicy prefetchPolicy = this.connection.getPrefetchPolicy();
int prefetch = isAutoAcknowledge() && connection.isOptimizedMessageDispatch() ? prefetchPolicy.getOptimizeDurableTopicPrefetch() : prefetchPolicy.getDurableTopicPrefetch();
int maxPrendingLimit = prefetchPolicy.getMaximumPendingMessageLimit();
return new ActiveMQTopicSubscriber(this, getNextConsumerId(), ActiveMQMessageTransformation.transformDestination(topic), name, messageSelector, prefetch, maxPrendingLimit,
                  noLocal, false, asyncDispatch);
origin: org.apache.activemq/activemq-all

/**
 * @throws JMSException
 */
private ActiveMQMessageConsumer createConsumer() throws JMSException {
  browseDone.set(false);
  ActiveMQPrefetchPolicy prefetchPolicy = session.connection.getPrefetchPolicy();
  return new ActiveMQMessageConsumer(session, consumerId, destination, null, selector, prefetchPolicy.getQueueBrowserPrefetch(), prefetchPolicy
    .getMaximumPendingMessageLimit(), false, true, dispatchAsync, null) {
    public void dispatch(MessageDispatch md) {
      if (md.getMessage() == null) {
        browseDone.set(true);
      } else {
        super.dispatch(md);
      }
      notifyMessageAvailable();
    }
  };
}
origin: org.apache.activemq/activemq-client

/**
 * @throws JMSException
 */
private ActiveMQMessageConsumer createConsumer() throws JMSException {
  browseDone.set(false);
  ActiveMQPrefetchPolicy prefetchPolicy = session.connection.getPrefetchPolicy();
  return new ActiveMQMessageConsumer(session, consumerId, destination, null, selector, prefetchPolicy.getQueueBrowserPrefetch(), prefetchPolicy
    .getMaximumPendingMessageLimit(), false, true, dispatchAsync, null) {
    public void dispatch(MessageDispatch md) {
      if (md.getMessage() == null) {
        browseDone.set(true);
      } else {
        super.dispatch(md);
      }
      notifyMessageAvailable();
    }
  };
}
origin: org.apache.activemq/activemq-osgi

/**
 * @throws JMSException
 */
private ActiveMQMessageConsumer createConsumer() throws JMSException {
  browseDone.set(false);
  ActiveMQPrefetchPolicy prefetchPolicy = session.connection.getPrefetchPolicy();
  return new ActiveMQMessageConsumer(session, consumerId, destination, null, selector, prefetchPolicy.getQueueBrowserPrefetch(), prefetchPolicy
    .getMaximumPendingMessageLimit(), false, true, dispatchAsync, null) {
    public void dispatch(MessageDispatch md) {
      if (md.getMessage() == null) {
        browseDone.set(true);
      } else {
        super.dispatch(md);
      }
      notifyMessageAvailable();
    }
  };
}
origin: pierre/meteo

/**
 * @param session
 * @param originalDestination
 * @param selectorExpression
 * @param cnum
 * @return
 * @throws JMSException
 */
private ActiveMQMessageConsumer createConsumer() throws JMSException {
  browseDone.set(false);
  ActiveMQPrefetchPolicy prefetchPolicy = session.connection.getPrefetchPolicy();
  return new ActiveMQMessageConsumer(session, consumerId, destination, null, selector, prefetchPolicy.getQueueBrowserPrefetch(), prefetchPolicy
    .getMaximumPendingMessageLimit(), false, true, dispatchAsync, null) {
    public void dispatch(MessageDispatch md) {
      if (md.getMessage() == null) {
        browseDone.set(true);
      } else {
        super.dispatch(md);
      }
      notifyMessageAvailable();
    }
  };
}
origin: org.apache.activemq/activemq-client

/**
 * Creates a <CODE>QueueReceiver</CODE> object to receive messages from
 * the specified queue using a message selector.
 *
 * @param queue the <CODE>Queue</CODE> to access
 * @param messageSelector only messages with properties matching the message
 *                selector expression are delivered. A value of null or an
 *                empty string indicates that there is no message selector
 *                for the message consumer.
 * @return QueueReceiver
 * @throws JMSException if the session fails to create a receiver due to
 *                 some internal error.
 * @throws InvalidDestinationException if an invalid queue is specified.
 * @throws InvalidSelectorException if the message selector is invalid.
 */
@Override
public QueueReceiver createReceiver(Queue queue, String messageSelector) throws JMSException {
  checkClosed();
  if (queue instanceof CustomDestination) {
    CustomDestination customDestination = (CustomDestination)queue;
    return customDestination.createReceiver(this, messageSelector);
  }
  ActiveMQPrefetchPolicy prefetchPolicy = this.connection.getPrefetchPolicy();
  return new ActiveMQQueueReceiver(this, getNextConsumerId(), ActiveMQMessageTransformation.transformDestination(queue), messageSelector, prefetchPolicy.getQueuePrefetch(),
                   prefetchPolicy.getMaximumPendingMessageLimit(), asyncDispatch);
}
origin: org.apache.activemq/activemq-all

/**
 * Creates a <CODE>QueueReceiver</CODE> object to receive messages from
 * the specified queue using a message selector.
 *
 * @param queue the <CODE>Queue</CODE> to access
 * @param messageSelector only messages with properties matching the message
 *                selector expression are delivered. A value of null or an
 *                empty string indicates that there is no message selector
 *                for the message consumer.
 * @return QueueReceiver
 * @throws JMSException if the session fails to create a receiver due to
 *                 some internal error.
 * @throws InvalidDestinationException if an invalid queue is specified.
 * @throws InvalidSelectorException if the message selector is invalid.
 */
@Override
public QueueReceiver createReceiver(Queue queue, String messageSelector) throws JMSException {
  checkClosed();
  if (queue instanceof CustomDestination) {
    CustomDestination customDestination = (CustomDestination)queue;
    return customDestination.createReceiver(this, messageSelector);
  }
  ActiveMQPrefetchPolicy prefetchPolicy = this.connection.getPrefetchPolicy();
  return new ActiveMQQueueReceiver(this, getNextConsumerId(), ActiveMQMessageTransformation.transformDestination(queue), messageSelector, prefetchPolicy.getQueuePrefetch(),
                   prefetchPolicy.getMaximumPendingMessageLimit(), asyncDispatch);
}
origin: org.apache.activemq/activemq-osgi

/**
 * Creates a <CODE>QueueReceiver</CODE> object to receive messages from
 * the specified queue using a message selector.
 *
 * @param queue the <CODE>Queue</CODE> to access
 * @param messageSelector only messages with properties matching the message
 *                selector expression are delivered. A value of null or an
 *                empty string indicates that there is no message selector
 *                for the message consumer.
 * @return QueueReceiver
 * @throws JMSException if the session fails to create a receiver due to
 *                 some internal error.
 * @throws InvalidDestinationException if an invalid queue is specified.
 * @throws InvalidSelectorException if the message selector is invalid.
 */
@Override
public QueueReceiver createReceiver(Queue queue, String messageSelector) throws JMSException {
  checkClosed();
  if (queue instanceof CustomDestination) {
    CustomDestination customDestination = (CustomDestination)queue;
    return customDestination.createReceiver(this, messageSelector);
  }
  ActiveMQPrefetchPolicy prefetchPolicy = this.connection.getPrefetchPolicy();
  return new ActiveMQQueueReceiver(this, getNextConsumerId(), ActiveMQMessageTransformation.transformDestination(queue), messageSelector, prefetchPolicy.getQueuePrefetch(),
                   prefetchPolicy.getMaximumPendingMessageLimit(), asyncDispatch);
}
origin: pierre/meteo

/**
 * Creates a <CODE>QueueReceiver</CODE> object to receive messages from
 * the specified queue using a message selector.
 * 
 * @param queue the <CODE>Queue</CODE> to access
 * @param messageSelector only messages with properties matching the message
 *                selector expression are delivered. A value of null or an
 *                empty string indicates that there is no message selector
 *                for the message consumer.
 * @return QueueReceiver
 * @throws JMSException if the session fails to create a receiver due to
 *                 some internal error.
 * @throws InvalidDestinationException if an invalid queue is specified.
 * @throws InvalidSelectorException if the message selector is invalid.
 */
public QueueReceiver createReceiver(Queue queue, String messageSelector) throws JMSException {
  checkClosed();
  if (queue instanceof CustomDestination) {
    CustomDestination customDestination = (CustomDestination)queue;
    return customDestination.createReceiver(this, messageSelector);
  }
  ActiveMQPrefetchPolicy prefetchPolicy = this.connection.getPrefetchPolicy();
  return new ActiveMQQueueReceiver(this, getNextConsumerId(), ActiveMQMessageTransformation.transformDestination(queue), messageSelector, prefetchPolicy.getQueuePrefetch(),
                   prefetchPolicy.getMaximumPendingMessageLimit(), asyncDispatch);
}
origin: org.apache.activemq/activemq-client

.getTopicPrefetch(), prefetchPolicy.getMaximumPendingMessageLimit(), noLocal, false, asyncDispatch);
origin: pierre/meteo

.getTopicPrefetch(), prefetchPolicy.getMaximumPendingMessageLimit(), noLocal, false, asyncDispatch);
origin: org.apache.activemq/activemq-all

.getTopicPrefetch(), prefetchPolicy.getMaximumPendingMessageLimit(), noLocal, false, asyncDispatch);
origin: org.apache.activemq/activemq-osgi

.getTopicPrefetch(), prefetchPolicy.getMaximumPendingMessageLimit(), noLocal, false, asyncDispatch);
origin: org.apache.activemq/activemq-client

prefetch, prefetchPolicy.getMaximumPendingMessageLimit(), noLocal, false, isAsyncDispatch(), messageListener);
origin: org.apache.activemq/activemq-all

prefetch, prefetchPolicy.getMaximumPendingMessageLimit(), noLocal, false, isAsyncDispatch(), messageListener);
origin: org.apache.activemq/activemq-all

ActiveMQPrefetchPolicy prefetchPolicy = this.connection.getPrefetchPolicy();
int prefetch = isAutoAcknowledge() && connection.isOptimizedMessageDispatch() ? prefetchPolicy.getOptimizeDurableTopicPrefetch() : prefetchPolicy.getDurableTopicPrefetch();
int maxPrendingLimit = prefetchPolicy.getMaximumPendingMessageLimit();
return new ActiveMQTopicSubscriber(this, getNextConsumerId(), ActiveMQMessageTransformation.transformDestination(topic), name, messageSelector, prefetch, maxPrendingLimit,
                  noLocal, false, asyncDispatch);
org.apache.activemqActiveMQPrefetchPolicygetMaximumPendingMessageLimit

Popular methods of ActiveMQPrefetchPolicy

  • <init>
    Initialize default prefetch policies
  • setQueuePrefetch
  • getDurableTopicPrefetch
  • getMaxPrefetchLimit
  • getOptimizeDurableTopicPrefetch
  • getQueueBrowserPrefetch
  • getQueuePrefetch
  • getTopicPrefetch
  • setTopicPrefetch
  • setDurableTopicPrefetch
  • setOptimizeDurableTopicPrefetch
  • getInputStreamPrefetch
  • setOptimizeDurableTopicPrefetch,
  • getInputStreamPrefetch,
  • setAll

Popular in Java

  • Creating JSON documents from java classes using gson
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • getApplicationContext (Context)
  • setScale (BigDecimal)
  • FileWriter (java.io)
    A specialized Writer that writes to a file in the file system. All write requests made by calling me
  • SocketException (java.net)
    This SocketException may be thrown during socket creation or setting options, and is the superclass
  • DecimalFormat (java.text)
    A concrete subclass of NumberFormat that formats decimal numbers. It has a variety of features desig
  • Deque (java.util)
    A linear collection that supports element insertion and removal at both ends. The name deque is shor
  • TimeZone (java.util)
    TimeZone represents a time zone offset, and also figures out daylight savings. Typically, you get a
  • Pattern (java.util.regex)
    Patterns are compiled regular expressions. In many cases, convenience methods such as String#matches
  • Top 12 Jupyter Notebook extensions
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now