code: @Override
      public void stop() {
          synchronized (this) {
              switch (result) {
                  case NEW: // If an attempt is aborted before it runs, stop() may be called without start()
                  case STARTED:
                      result = TimeoutResult.FINISHED;
                      metrics.incrementTimeoutFalseCount();
                      recordExecutionTime();
                      if (timeoutFuture != null) {
                          timeoutFuture.cancel(false);
                      }
                      break;
                  case FINISHED:
                      throw new IllegalStateException("Stop called twice on the same timeout");
                  case TIMEDOUT:
                      // Do nothing
              }
          }
      }
docs: {@inheritDoc}