public void consume(Collection<DataEvent<ZoieIndexable>> events) throws ZoieException {
// updates the in memory status before and after the work
synchronized (_optimizeMonitor) {
try {
_idxMgr.setDiskIndexerStatus(Status.Working);
OptimizeType optType = _optScheduler.getScheduledOptimizeType();
_idxMgr.setPartialExpunge(optType == OptimizeType.PARTIAL);
try {
super.consume(events);
} finally {
_optScheduler.finished();