Tabnine Logo
Destination.getMaxPageSize
Code IndexAdd Tabnine to your IDE (free)

How to use
getMaxPageSize
method
in
org.apache.activemq.broker.region.Destination

Best Java code snippets using org.apache.activemq.broker.region.Destination.getMaxPageSize (Showing top 19 results out of 315)

origin: apache/activemq

@Override
public int getMaxPageSize() {
  return destination.getMaxPageSize();
}
origin: apache/activemq

@Override
public int getMaxPageSize() {
  return next.getMaxPageSize();
}
origin: apache/activemq

@Override
protected final synchronized void fillBatch() {
  if (LOG.isTraceEnabled()) {
    LOG.trace("{} fillBatch", this);
  }
  if (batchResetNeeded) {
    resetSize();
    setMaxBatchSize(Math.min(regionDestination.getMaxPageSize(), size));
    resetBatch();
    this.batchResetNeeded = false;
  }
  if (this.batchList.isEmpty() && this.size >0) {
    try {
      doFillBatch();
    } catch (Exception e) {
      LOG.error("{} - Failed to fill batch", this, e);
      throw new RuntimeException(e);
    }
  }
}
origin: apache/activemq

/**
 * Add a destination
 *
 * @param context
 * @param destination
 * @throws Exception
 */
@Override
public synchronized void add(ConnectionContext context, Destination destination) throws Exception {
  if (destination != null && !AdvisorySupport.isAdvisoryTopic(destination.getActiveMQDestination())) {
    TopicStorePrefetch tsp = new TopicStorePrefetch(this.subscription,(Topic)destination, clientId, subscriberName);
    tsp.setMaxBatchSize(destination.getMaxPageSize());
    tsp.setSystemUsage(systemUsage);
    tsp.setMessageAudit(getMessageAudit());
    tsp.setEnableAudit(isEnableAudit());
    tsp.setMemoryUsageHighWaterMark(getMemoryUsageHighWaterMark());
    tsp.setUseCache(isUseCache());
    tsp.setCacheEnabled(isUseCache() && tsp.isEmpty());
    topics.put(destination, tsp);
    storePrefetches.add(tsp);
    if (isStarted()) {
      tsp.start();
    }
  }
}
origin: org.apache.activemq/activemq-all

@Override
public int getMaxPageSize() {
  return destination.getMaxPageSize();
}
origin: org.apache.activemq/activemq-broker

@Override
public int getMaxPageSize() {
  return next.getMaxPageSize();
}
origin: org.apache.activemq/activemq-broker

@Override
public int getMaxPageSize() {
  return destination.getMaxPageSize();
}
origin: org.apache.activemq/activemq-all

@Override
public int getMaxPageSize() {
  return next.getMaxPageSize();
}
origin: org.apache.activemq/activemq-osgi

@Override
public int getMaxPageSize() {
  return next.getMaxPageSize();
}
origin: org.apache.activemq/activemq-osgi

@Override
public int getMaxPageSize() {
  return destination.getMaxPageSize();
}
origin: pierre/meteo

public int getMaxPageSize() {
  return destination.getMaxPageSize();
}
origin: pierre/meteo

public int getMaxPageSize() {
  return next.getMaxPageSize();
}
origin: org.apache.activemq/activemq-broker

@Override
protected final synchronized void fillBatch() {
  if (LOG.isTraceEnabled()) {
    LOG.trace("{} fillBatch", this);
  }
  if (batchResetNeeded) {
    resetSize();
    setMaxBatchSize(Math.min(regionDestination.getMaxPageSize(), size));
    resetBatch();
    this.batchResetNeeded = false;
  }
  if (this.batchList.isEmpty() && this.size >0) {
    try {
      doFillBatch();
    } catch (Exception e) {
      LOG.error("{} - Failed to fill batch", this, e);
      throw new RuntimeException(e);
    }
  }
}
origin: org.apache.activemq/activemq-osgi

@Override
protected final synchronized void fillBatch() {
  if (LOG.isTraceEnabled()) {
    LOG.trace("{} fillBatch", this);
  }
  if (batchResetNeeded) {
    resetSize();
    setMaxBatchSize(Math.min(regionDestination.getMaxPageSize(), size));
    resetBatch();
    this.batchResetNeeded = false;
  }
  if (this.batchList.isEmpty() && this.size >0) {
    try {
      doFillBatch();
    } catch (Exception e) {
      LOG.error("{} - Failed to fill batch", this, e);
      throw new RuntimeException(e);
    }
  }
}
origin: org.apache.activemq/activemq-all

@Override
protected final synchronized void fillBatch() {
  if (LOG.isTraceEnabled()) {
    LOG.trace("{} fillBatch", this);
  }
  if (batchResetNeeded) {
    resetSize();
    setMaxBatchSize(Math.min(regionDestination.getMaxPageSize(), size));
    resetBatch();
    this.batchResetNeeded = false;
  }
  if (this.batchList.isEmpty() && this.size >0) {
    try {
      doFillBatch();
    } catch (Exception e) {
      LOG.error("{} - Failed to fill batch", this, e);
      throw new RuntimeException(e);
    }
  }
}
origin: pierre/meteo

/**
 * Add a destination
 * 
 * @param context
 * @param destination
 * @throws Exception
 */
@Override
public synchronized void add(ConnectionContext context, Destination destination) throws Exception {
  if (destination != null && !AdvisorySupport.isAdvisoryTopic(destination.getActiveMQDestination())) {
    TopicStorePrefetch tsp = new TopicStorePrefetch(this.subscription,(Topic)destination, clientId, subscriberName);
    tsp.setMaxBatchSize(destination.getMaxPageSize());
    tsp.setSystemUsage(systemUsage);
    tsp.setMessageAudit(getMessageAudit());
    tsp.setEnableAudit(isEnableAudit());
    tsp.setMemoryUsageHighWaterMark(getMemoryUsageHighWaterMark());
    topics.put(destination, tsp);
    storePrefetches.add(tsp);
    if (isStarted()) {
      tsp.start();
    }
  }
}
origin: org.apache.activemq/activemq-all

/**
 * Add a destination
 *
 * @param context
 * @param destination
 * @throws Exception
 */
@Override
public synchronized void add(ConnectionContext context, Destination destination) throws Exception {
  if (destination != null && !AdvisorySupport.isAdvisoryTopic(destination.getActiveMQDestination())) {
    TopicStorePrefetch tsp = new TopicStorePrefetch(this.subscription,(Topic)destination, clientId, subscriberName);
    tsp.setMaxBatchSize(destination.getMaxPageSize());
    tsp.setSystemUsage(systemUsage);
    tsp.setMessageAudit(getMessageAudit());
    tsp.setEnableAudit(isEnableAudit());
    tsp.setMemoryUsageHighWaterMark(getMemoryUsageHighWaterMark());
    tsp.setUseCache(isUseCache());
    tsp.setCacheEnabled(isUseCache() && tsp.isEmpty());
    topics.put(destination, tsp);
    storePrefetches.add(tsp);
    if (isStarted()) {
      tsp.start();
    }
  }
}
origin: org.apache.activemq/activemq-broker

/**
 * Add a destination
 *
 * @param context
 * @param destination
 * @throws Exception
 */
@Override
public synchronized void add(ConnectionContext context, Destination destination) throws Exception {
  if (destination != null && !AdvisorySupport.isAdvisoryTopic(destination.getActiveMQDestination())) {
    TopicStorePrefetch tsp = new TopicStorePrefetch(this.subscription,(Topic)destination, clientId, subscriberName);
    tsp.setMaxBatchSize(destination.getMaxPageSize());
    tsp.setSystemUsage(systemUsage);
    tsp.setMessageAudit(getMessageAudit());
    tsp.setEnableAudit(isEnableAudit());
    tsp.setMemoryUsageHighWaterMark(getMemoryUsageHighWaterMark());
    tsp.setUseCache(isUseCache());
    tsp.setCacheEnabled(isUseCache() && tsp.isEmpty());
    topics.put(destination, tsp);
    storePrefetches.add(tsp);
    if (isStarted()) {
      tsp.start();
    }
  }
}
origin: org.apache.activemq/activemq-osgi

/**
 * Add a destination
 *
 * @param context
 * @param destination
 * @throws Exception
 */
@Override
public synchronized void add(ConnectionContext context, Destination destination) throws Exception {
  if (destination != null && !AdvisorySupport.isAdvisoryTopic(destination.getActiveMQDestination())) {
    TopicStorePrefetch tsp = new TopicStorePrefetch(this.subscription,(Topic)destination, clientId, subscriberName);
    tsp.setMaxBatchSize(destination.getMaxPageSize());
    tsp.setSystemUsage(systemUsage);
    tsp.setMessageAudit(getMessageAudit());
    tsp.setEnableAudit(isEnableAudit());
    tsp.setMemoryUsageHighWaterMark(getMemoryUsageHighWaterMark());
    tsp.setUseCache(isUseCache());
    tsp.setCacheEnabled(isUseCache() && tsp.isEmpty());
    topics.put(destination, tsp);
    storePrefetches.add(tsp);
    if (isStarted()) {
      tsp.start();
    }
  }
}
org.apache.activemq.broker.regionDestinationgetMaxPageSize

Popular methods of Destination

  • getConsumers
  • getDestinationStatistics
  • getName
  • getActiveMQDestination
  • browse
  • removeSubscription
  • acknowledge
  • addProducer
  • addSubscription
  • dispose
  • fastProducer
    Called to notify a producer is too fast
  • gc
  • fastProducer,
  • gc,
  • getBlockedProducerWarningInterval,
  • getCursorMemoryHighWaterMark,
  • getDeadLetterStrategy,
  • getMaxAuditDepth,
  • getMaxBrowsePageSize,
  • getMaxProducersToAudit,
  • getMemoryUsage

Popular in Java

  • Creating JSON documents from java classes using gson
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • getSystemService (Context)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • Font (java.awt)
    The Font class represents fonts, which are used to render text in a visible way. A font provides the
  • FileReader (java.io)
    A specialized Reader that reads from a file in the file system. All read requests made by calling me
  • String (java.lang)
  • GregorianCalendar (java.util)
    GregorianCalendar is a concrete subclass of Calendarand provides the standard calendar used by most
  • Reference (javax.naming)
  • Servlet (javax.servlet)
    Defines methods that all servlets must implement. A servlet is a small Java program that runs within
  • Top plugins for Android Studio
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