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

  • Start an intent from android
  • getApplicationContext (Context)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • getExternalFilesDir (Context)
  • Menu (java.awt)
  • BufferedReader (java.io)
    Wraps an existing Reader and buffers the input. Expensive interaction with the underlying reader is
  • FileReader (java.io)
    A specialized Reader that reads from a file in the file system. All read requests made by calling me
  • Charset (java.nio.charset)
    A charset is a named mapping between Unicode characters and byte sequences. Every Charset can decode
  • Collection (java.util)
    Collection is the root of the collection hierarchy. It defines operations on data collections and t
  • JPanel (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