Tabnine Logo
ActiveMQPrefetchPolicy.getQueuePrefetch
Code IndexAdd Tabnine 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)

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

  • Making http requests using okhttp
  • onRequestPermissionsResult (Fragment)
  • scheduleAtFixedRate (Timer)
  • requestLocationUpdates (LocationManager)
  • Collections (java.util)
    This class consists exclusively of static methods that operate on or return collections. It contains
  • Enumeration (java.util)
    A legacy iteration interface.New code should use Iterator instead. Iterator replaces the enumeration
  • Iterator (java.util)
    An iterator over a sequence of objects, such as a collection.If a collection has been changed since
  • SortedSet (java.util)
    SortedSet is a Set which iterates over its elements in a sorted order. The order is determined eithe
  • AtomicInteger (java.util.concurrent.atomic)
    An int value that may be updated atomically. See the java.util.concurrent.atomic package specificati
  • Logger (org.slf4j)
    The org.slf4j.Logger interface is the main user entry point of SLF4J API. It is expected that loggin
  • 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