Codota Logo
ActiveMQPrefetchPolicy.getQueuePrefetch
Code IndexAdd Codota to your IDE (free)

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

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

  • Common ways to obtain ActiveMQPrefetchPolicy
private void myMethod () {
ActiveMQPrefetchPolicy a =
  • Codota Iconnew ActiveMQPrefetchPolicy()
  • Codota IconActiveMQConnection connection;connection.getPrefetchPolicy()
  • Codota IconActiveMQSession activeMQSession;activeMQSession.connection.getPrefetchPolicy()
  • Smart code suggestions by Codota
}
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

  prefetch = prefetchPolicy.getTopicPrefetch();
} else {
  prefetch = prefetchPolicy.getQueuePrefetch();
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

  prefetch = prefetchPolicy.getTopicPrefetch();
} else {
  prefetch = prefetchPolicy.getQueuePrefetch();
origin: org.apache.activemq/activemq-all

  prefetch = prefetchPolicy.getTopicPrefetch();
} else {
  prefetch = prefetchPolicy.getQueuePrefetch();
origin: org.apache.activemq/activemq-osgi

  prefetch = prefetchPolicy.getTopicPrefetch();
} else {
  prefetch = prefetchPolicy.getQueuePrefetch();
origin: pierre/meteo

  prefetch = prefetchPolicy.getTopicPrefetch();
} else {
  prefetch = prefetchPolicy.getQueuePrefetch();
org.apache.activemqActiveMQPrefetchPolicygetQueuePrefetch

Popular methods of ActiveMQPrefetchPolicy

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

Popular in Java

  • Reactive rest calls using spring rest template
  • scheduleAtFixedRate (ScheduledExecutorService)
  • setContentView (Activity)
  • getSharedPreferences (Context)
  • Container (java.awt)
    A generic Abstract Window Toolkit(AWT) container object is a component that can contain other AWT co
  • URL (java.net)
    A Uniform Resource Locator that identifies the location of an Internet resource as specified by RFC
  • DateFormat (java.text)
    Formats or parses dates and times.This class provides factories for obtaining instances configured f
  • BitSet (java.util)
    This class implements a vector of bits that grows as needed. Each component of the bit set has a boo
  • TreeSet (java.util)
    A NavigableSet implementation based on a TreeMap. The elements are ordered using their Comparable, o
  • Cipher (javax.crypto)
    This class provides access to implementations of cryptographic ciphers for encryption and decryption
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now