protected void pauseOrResume() { int pending = batcher.count() + pendingSequences.count(); changeTracker.setPaused(pending >= MAX_PENDING_DOCS); }