private void flush() { // FLUSH Collection<DataEvent<D>> tmp; tmp = _batch; _batch = new LinkedList<DataEvent<D>>(); try { if (_dataProvider._consumer != null) { int batchSize = tmp.size(); _dataProvider._consumer.consume(tmp); _eventCount.getAndAdd(batchSize); updateStats(); } } catch (ZoieException e) { log.error(e.getMessage(), e); } _lastFlushTime = System.currentTimeMillis(); }
_version = dc.getVersion();
private void flush() { // FLUSH Collection<DataEvent<D>> tmp; tmp = _batch; _batch = new LinkedList<DataEvent<D>>(); try { if (_dataProvider._consumer != null) { int batchSize = tmp.size(); _dataProvider._consumer.consume(tmp); _eventCount.getAndAdd(batchSize); updateStats(); } } catch (ZoieException e) { log.error(e.getMessage(), e); } _lastFlushTime = System.currentTimeMillis(); }
_version = dc.getVersion();
_consumer.consume(currentBatch); } catch (Exception e) { log.error(e.getMessage(), e);
_version = dc.getVersion();
_consumer.consume(currentBatch); } catch (Exception e) { log.error(e.getMessage(), e);
private void flush() { // FLUSH Collection<DataEvent<D>> tmp; tmp = _batch; _batch = new LinkedList<DataEvent<D>>(); try { if (_dataProvider._consumer != null) { int batchSize = tmp.size(); _dataProvider._consumer.consume(tmp); _eventCount.getAndAdd(batchSize); updateStats(); } } catch (ZoieException e) { log.error(e.getMessage(), e); } }
_consumer.consume(currentBatch);
_ramConsumer.consume(indexableList);// consumer clear the list! _currentBatchSize += size; _eventCount += size;
_ramConsumer.consume(indexableList);// consumer clear the list! _currentBatchSize += size; _eventCount += size;
_ramConsumer.consume(indexableList);// consumer clear the list!
_dataLoader.consume(tmpList); } catch (ZoieException e) { ZoieHealth.setFatal();
_dataLoader.consume(tmpList); } catch (ZoieException e) { ZoieHealth.setFatal();
_dataLoader.consume(tmpList);