congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
ActiveMQPrefetchPolicy.getQueueBrowserPrefetch
Code IndexAdd Tabnine to your IDE (free)

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

Best Java code snippets using org.apache.activemq.ActiveMQPrefetchPolicy.getQueueBrowserPrefetch (Showing top 5 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: 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-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-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();
    }
  };
}
org.apache.activemqActiveMQPrefetchPolicygetQueueBrowserPrefetch

Popular methods of ActiveMQPrefetchPolicy

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

Popular in Java

  • Reactive rest calls using spring rest template
  • getApplicationContext (Context)
  • getExternalFilesDir (Context)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • Graphics2D (java.awt)
    This Graphics2D class extends the Graphics class to provide more sophisticated control overgraphics
  • Point (java.awt)
    A point representing a location in (x,y) coordinate space, specified in integer precision.
  • NumberFormat (java.text)
    The abstract base class for all number formats. This class provides the interface for formatting and
  • ExecutorService (java.util.concurrent)
    An Executor that provides methods to manage termination and methods that can produce a Future for tr
  • Pattern (java.util.regex)
    Patterns are compiled regular expressions. In many cases, convenience methods such as String#matches
  • JOptionPane (javax.swing)
  • Top 15 Vim Plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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