private void clearFromArchives(Collection<DataEvent<D>> data) throws ZoieException { if (_dirMgrFactory.getScheduler().isAppendOnly()) return; if (data != null && data.size() > 0) { List<DataEvent<D>> deletes = new ArrayList<DataEvent<D>>(data.size()); for (DataEvent<D> event : data) { deletes.add(new DataEvent<D>(event.getData(), event.getVersion(), true)); } for (ZoieSystem<R, D> zoie : _readerMgr.getArchiveZoies()) { zoie.consume(deletes); } } }
private void clearFromArchives(Collection<DataEvent<D>> data) throws ZoieException { if (_dirMgrFactory.getScheduler().isAppendOnly()) return; if (data != null && data.size() > 0) { List<DataEvent<D>> deletes = new ArrayList<DataEvent<D>>(data.size()); for (DataEvent<D> event : data) { deletes.add(new DataEvent<D>(event.getData(), event.getVersion(), true)); } for (ZoieSystem<R, D> zoie : _readerMgr.getArchiveZoies()) { zoie.consume(deletes); } } }
private void clearFromArchives(Collection<DataEvent<D>> data) throws ZoieException { if (_dirMgrFactory.getScheduler().isAppendOnly()) return; if (data != null && data.size() > 0) { List<DataEvent<D>> deletes = new ArrayList<DataEvent<D>>(data.size()); for (DataEvent<D> event : data) { if (event instanceof MarkerDataEvent) continue; deletes.add(new DataEvent<D>(event.getData(), event.getVersion(), true)); } for (ZoieSystem<R, D> zoie : _readerMgr.getArchiveZoies()) { zoie.consume(deletes); } } }
hg = hourglass; _dirMgrFactory = dirMgrFactory; _appendOnly = _dirMgrFactory.getScheduler().isAppendOnly(); _decorator = decorator; this.listener = new CompositeHourglassListener(hourglassListeners);
hg = hourglass; _dirMgrFactory = dirMgrFactory; _appendOnly = _dirMgrFactory.getScheduler().isAppendOnly(); _decorator = decorator; this.listener = new CompositeHourglassListener(hourglassListeners);
_appendOnly = _dirMgrFactory.getScheduler().isAppendOnly(); _decorator = decorator; this.listener = new CompositeHourglassListener((List<HourglassListener>)(List)hourglassListeners);
List<ZoieMultiReader<R>> archives; List<ZoieSystem<R, D>> archiveZoies; if (_dirMgrFactory.getScheduler().isAppendOnly()) { archives = loadArchives(); archiveZoies = Collections.emptyList();
List<ZoieMultiReader<R>> archives; List<ZoieSystem<R, D>> archiveZoies; if (_dirMgrFactory.getScheduler().isAppendOnly()) { archives = loadArchives(); archiveZoies = Collections.emptyList();
List<ZoieIndexReader<R>> archives; List<ZoieSystem<R, D>> archiveZoies; if (_dirMgrFactory.getScheduler().isAppendOnly())