code: public void cancel() {
          logger.debug("try to cancel timer.");
          synchronized (lock) {
              if (timerTask != null) {
                  logger.debug("cancel timer.");
                  timerTask.cancel(false);
              }
          }
      }
docs: Method cancels the a started timeout.
  <p>
  Node: In case the timeout was never started this method does nothing.