@Override protected void run() throws Exception { // cache some references on the stack, to make the code more JIT friendly final OneInputStreamOperator<IN, OUT> operator = this.headOperator; final StreamInputProcessor<IN> inputProcessor = this.inputProcessor; final Object lock = getCheckpointLock(); while (running && inputProcessor.processInput(operator, lock)) { checkTimerException(); } }