private int determineBatchSize() { int batchSize = group.getConfig().getBatchSize(); if (quarantined.size() < batchSize) { batchSize = quarantined.size(); } return batchSize; }
private int determineBatchSize() { int batchSize = group.getConfig().getBatchSize(); if (quarantined.size() < batchSize) { batchSize = quarantined.size(); } return batchSize; }
private int determineBatchSize() { int batchSize = group.getConfig().getBatchSize(); if (quarantined.size() < batchSize) { batchSize = quarantined.size(); } return batchSize; }
private void processQuarantinedItems() throws ProcessingException { // process the quarantined items and remove them as they're processed quarantineWriteLock.lock(); try { if (LOGGER.isLoggable(Level.CONFIG)) LOGGER.config(getThreadName() + " : processQuarantinedItems() : processing " + quarantined.size() + " quarantined items"); // don't process work if this node's operations have been disabled if (cluster != null && !cluster.areOperationsEnabled()) { reassemble(); } else { if (group.getConfig().isBatchingEnabled() && group.getConfig().getBatchSize() > 0) { processBatchedItems(); } else { processSingleItem(); } } quarantined = null; } finally { quarantineWriteLock.unlock(); } }
private void processQuarantinedItems() throws ProcessingException { // process the quarantined items and remove them as they're processed quarantineWriteLock.lock(); try { if (LOGGER.isLoggable(Level.CONFIG)) LOGGER.config(getThreadName() + " : processQuarantinedItems() : processing " + quarantined.size() + " quarantined items"); // don't process work if this node's operations have been disabled if (cluster != null && !cluster.areOperationsEnabled()) { reassemble(); } else { if (group.getConfig().isBatchingEnabled() && group.getConfig().getBatchSize() > 0) { processBatchedItems(); } else { processSingleItem(); } } quarantined = null; } finally { quarantineWriteLock.unlock(); } }
private void processQuarantinedItems() throws ProcessingException { // process the quarantined items and remove them as they're processed quarantineWriteLock.lock(); try { if (LOGGER.isLoggable(Level.CONFIG)) LOGGER.config(getThreadName() + " : processQuarantinedItems() : processing " + quarantined.size() + " quarantined items"); // don't process work if this node's operations have been disabled if (cluster != null && !cluster.areOperationsEnabled()) { reassemble(); } else { if (group.getConfig().isBatchingEnabled() && group.getConfig().getBatchSize() > 0) { processBatchedItems(); } else { processSingleItem(); } } quarantined = null; } finally { quarantineWriteLock.unlock(); } }
final int batchSize = group.getConfig().getBatchSize(); if (group.getConfig().isBatchingEnabled() && batchSize > 0) {
final int batchSize = group.getConfig().getBatchSize(); if (group.getConfig().isBatchingEnabled() && batchSize > 0) {
final int batchSize = group.getConfig().getBatchSize(); if (group.getConfig().isBatchingEnabled() && batchSize > 0) {