Tabnine Logo
ActiveMQPrefetchPolicy.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
org.apache.activemq.ActiveMQPrefetchPolicy
constructor

Best Java code snippets using org.apache.activemq.ActiveMQPrefetchPolicy.<init> (Showing top 9 results out of 315)

origin: apache/activemq

public boolean buildFromMap(Map<String, Object> properties) {
  boolean rc = false;
  ActiveMQPrefetchPolicy p = new ActiveMQPrefetchPolicy();
  if (IntrospectionSupport.setProperties(p, properties, "prefetchPolicy.")) {
    setPrefetchPolicy(p);
    rc = true;
  }
  RedeliveryPolicy rp = new RedeliveryPolicy();
  if (IntrospectionSupport.setProperties(rp, properties, "redeliveryPolicy.")) {
    setRedeliveryPolicy(rp);
    rc = true;
  }
  BlobTransferPolicy blobTransferPolicy = new BlobTransferPolicy();
  if (IntrospectionSupport.setProperties(blobTransferPolicy, properties, "blobTransferPolicy.")) {
    setBlobTransferPolicy(blobTransferPolicy);
    rc = true;
  }
  rc |= IntrospectionSupport.setProperties(this, properties);
  return rc;
}
origin: org.apache.james/james-server-queue-activemq

private ActiveMQPrefetchPolicy createActiveMQPrefetchPolicy() {
  ActiveMQPrefetchPolicy prefetchPolicy = new ActiveMQPrefetchPolicy();
  prefetchPolicy.setQueuePrefetch(0);
  prefetchPolicy.setTopicPrefetch(0);
  return prefetchPolicy;
}
origin: com.github.combinedmq/combinedmq

@Override
protected void init() {
  cfg = (ActiveMqConfiguration) getConfiguration();
  if (null == cf) {
    cf = new ActiveMQConnectionFactory();
  }
  Object value;
  if ((value = cfg.getBrokerUrl()) != null) cf.setBrokerURL(String.valueOf(value));
  if ((value = cfg.getUsername()) != null) cf.setUserName(String.valueOf(value));
  if ((value = cfg.getPassword()) != null) cf.setPassword(String.valueOf(value));
  ActiveMQPrefetchPolicy policy = new ActiveMQPrefetchPolicy();
  policy.setQueuePrefetch(1);
  cf.setPrefetchPolicy(policy);
}
origin: org.apache.activemq/activemq-all

public boolean buildFromMap(Map<String, Object> properties) {
  boolean rc = false;
  ActiveMQPrefetchPolicy p = new ActiveMQPrefetchPolicy();
  if (IntrospectionSupport.setProperties(p, properties, "prefetchPolicy.")) {
    setPrefetchPolicy(p);
    rc = true;
  }
  RedeliveryPolicy rp = new RedeliveryPolicy();
  if (IntrospectionSupport.setProperties(rp, properties, "redeliveryPolicy.")) {
    setRedeliveryPolicy(rp);
    rc = true;
  }
  BlobTransferPolicy blobTransferPolicy = new BlobTransferPolicy();
  if (IntrospectionSupport.setProperties(blobTransferPolicy, properties, "blobTransferPolicy.")) {
    setBlobTransferPolicy(blobTransferPolicy);
    rc = true;
  }
  rc |= IntrospectionSupport.setProperties(this, properties);
  return rc;
}
origin: pierre/meteo

public boolean buildFromMap(Map<String, Object> properties) {
  boolean rc = false;
  ActiveMQPrefetchPolicy p = new ActiveMQPrefetchPolicy();
  if (IntrospectionSupport.setProperties(p, properties, "prefetchPolicy.")) {
    setPrefetchPolicy(p);
    rc = true;
  }
  RedeliveryPolicy rp = new RedeliveryPolicy();
  if (IntrospectionSupport.setProperties(rp, properties, "redeliveryPolicy.")) {
    setRedeliveryPolicy(rp);
    rc = true;
  }
  BlobTransferPolicy blobTransferPolicy = new BlobTransferPolicy();
  if (IntrospectionSupport.setProperties(blobTransferPolicy, properties, "blobTransferPolicy.")) {
    setBlobTransferPolicy(blobTransferPolicy);
    rc = true;
  }
  rc |= IntrospectionSupport.setProperties(this, properties);
  return rc;
}
origin: org.apache.activemq/activemq-client

public boolean buildFromMap(Map<String, Object> properties) {
  boolean rc = false;
  ActiveMQPrefetchPolicy p = new ActiveMQPrefetchPolicy();
  if (IntrospectionSupport.setProperties(p, properties, "prefetchPolicy.")) {
    setPrefetchPolicy(p);
    rc = true;
  }
  RedeliveryPolicy rp = new RedeliveryPolicy();
  if (IntrospectionSupport.setProperties(rp, properties, "redeliveryPolicy.")) {
    setRedeliveryPolicy(rp);
    rc = true;
  }
  BlobTransferPolicy blobTransferPolicy = new BlobTransferPolicy();
  if (IntrospectionSupport.setProperties(blobTransferPolicy, properties, "blobTransferPolicy.")) {
    setBlobTransferPolicy(blobTransferPolicy);
    rc = true;
  }
  rc |= IntrospectionSupport.setProperties(this, properties);
  return rc;
}
origin: org.apache.activemq/activemq-osgi

public boolean buildFromMap(Map<String, Object> properties) {
  boolean rc = false;
  ActiveMQPrefetchPolicy p = new ActiveMQPrefetchPolicy();
  if (IntrospectionSupport.setProperties(p, properties, "prefetchPolicy.")) {
    setPrefetchPolicy(p);
    rc = true;
  }
  RedeliveryPolicy rp = new RedeliveryPolicy();
  if (IntrospectionSupport.setProperties(rp, properties, "redeliveryPolicy.")) {
    setRedeliveryPolicy(rp);
    rc = true;
  }
  BlobTransferPolicy blobTransferPolicy = new BlobTransferPolicy();
  if (IntrospectionSupport.setProperties(blobTransferPolicy, properties, "blobTransferPolicy.")) {
    setBlobTransferPolicy(blobTransferPolicy);
    rc = true;
  }
  rc |= IntrospectionSupport.setProperties(this, properties);
  return rc;
}
origin: com.bbossgroups.rpc/bboss-rpc

  BeanAccembleHelper.injectProperties(instance_, connectionParams);
org.apache.activemq.ActiveMQPrefetchPolicy a = new org.apache.activemq.ActiveMQPrefetchPolicy();
ProMap prefetchParams = temp.getMap(connection_params_prefetchPolicy);
ProMap globalprefetchParams = BaseSPIManager2.getMapProperty(connection_params_prefetchPolicy);
  BeanAccembleHelper.injectProperties(instance_, connectionParams);
org.apache.activemq.ActiveMQPrefetchPolicy a = new org.apache.activemq.ActiveMQPrefetchPolicy();
ProMap prefetchParams = (ProMap)temp.get(connection_params_prefetchPolicy);
ProMap globalprefetchParams = BaseSPIManager2.getMapProperty(connection_params_prefetchPolicy);
origin: com.bbossgroups.rpc/bboss-rpc

  BeanAccembleHelper.injectProperties(instance_, connectionParams);
org.apache.activemq.ActiveMQPrefetchPolicy a = new org.apache.activemq.ActiveMQPrefetchPolicy();
ProMap prefetchParams = temp.getMap(connection_params_prefetchPolicy);
ProMap globalprefetchParams = BaseSPIManager2.getMapProperty(connection_params_prefetchPolicy);
  BeanAccembleHelper.injectProperties(instance_, connectionParams);
org.apache.activemq.ActiveMQPrefetchPolicy a = new org.apache.activemq.ActiveMQPrefetchPolicy();
ProMap prefetchParams = (ProMap)temp.get(connection_params_prefetchPolicy);
ProMap globalprefetchParams = BaseSPIManager2.getMapProperty(connection_params_prefetchPolicy);
org.apache.activemqActiveMQPrefetchPolicy<init>

Javadoc

Initialize default prefetch policies

Popular methods of ActiveMQPrefetchPolicy

  • setQueuePrefetch
  • getDurableTopicPrefetch
  • getMaxPrefetchLimit
  • getMaximumPendingMessageLimit
  • getOptimizeDurableTopicPrefetch
  • getQueueBrowserPrefetch
  • getQueuePrefetch
  • getTopicPrefetch
  • setTopicPrefetch
  • setDurableTopicPrefetch
  • setOptimizeDurableTopicPrefetch
  • getInputStreamPrefetch
  • setOptimizeDurableTopicPrefetch,
  • getInputStreamPrefetch,
  • setAll

Popular in Java

  • Parsing JSON documents to java classes using gson
  • scheduleAtFixedRate (Timer)
  • setRequestProperty (URLConnection)
  • setContentView (Activity)
  • Point (java.awt)
    A point representing a location in (x,y) coordinate space, specified in integer precision.
  • Window (java.awt)
    A Window object is a top-level window with no borders and no menubar. The default layout for a windo
  • Dictionary (java.util)
    Note: Do not use this class since it is obsolete. Please use the Map interface for new implementatio
  • AtomicInteger (java.util.concurrent.atomic)
    An int value that may be updated atomically. See the java.util.concurrent.atomic package specificati
  • JCheckBox (javax.swing)
  • FileUtils (org.apache.commons.io)
    General file manipulation utilities. Facilities are provided in the following areas: * writing to a
  • Top Vim plugins
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