@Override
    public void checkCanceled() throws CanceledException {
      if (maxMilis <= 0 || startMilis <= 0) {
        return;
      }
      long timeMillis = System.currentTimeMillis();
      if (timeMillis - startMilis > maxMilis) {
        throw new TimeExceedException();
      }
    }
@Override
    public void checkCanceled()