in src/main/java/com/googlesource/gerrit/plugins/events/StreamEvents.java [161:167]
protected void startFlush() throws IOException {
synchronized (crossThreadlock) {
if (!isFlushing() && !shuttingDown && !isUpToDate()) {
flusherTask = threadPool.submit(flusherRunnable);
}
}
}