flush.get(Math.max(timeout - clock.currentTimeInMillis(), 0), TimeUnit.MILLISECONDS); task.commit(); recordsSinceLastCommit = 0; timeOfLastCommitMillis = clock.currentTimeInMillis();
private void commitSourceTask() { try { this.task.commit(); } catch (Throwable t) { log.error("{} Exception thrown while calling task.commit()", this, t); } }