code: protected synchronized void resetTimeout() {
          if (timeoutTask != null)
              timeoutTask.cancel();
          if (timeoutMillis == 0 || !timeoutEnabled)
              return;
          timeoutTask = new TimerTask() {
              @Override
              public void run() {
                  timeoutOccurred();
              }
          };
          timeoutTimer.schedule(timeoutTask, timeoutMillis);
      }
docs: Resets the current progress towards timeout to 0.