@Override public int getMaxPageSize() { return destination.getMaxPageSize(); }
@Override public int getMaxPageSize() { return next.getMaxPageSize(); }
@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); } } }
/** * 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(); } } }
@Override public int getMaxPageSize() { return destination.getMaxPageSize(); }
@Override public int getMaxPageSize() { return next.getMaxPageSize(); }
@Override public int getMaxPageSize() { return destination.getMaxPageSize(); }
@Override public int getMaxPageSize() { return next.getMaxPageSize(); }
@Override public int getMaxPageSize() { return next.getMaxPageSize(); }
@Override public int getMaxPageSize() { return destination.getMaxPageSize(); }
public int getMaxPageSize() { return destination.getMaxPageSize(); }
public int getMaxPageSize() { return next.getMaxPageSize(); }
@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); } } }
@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); } } }
@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); } } }
/** * 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(); } } }
/** * 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(); } } }
/** * 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(); } } }
/** * 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(); } } }