public void lockInterruptibly() throws InterruptedException {
    for (;;) {
      stopper.checkCancelInProgress(null);
      if (lock.tryLock(RETRY_TIME, TimeUnit.MILLISECONDS)) {
        break;
      }
    }
  }
Create a new instance with given fairness and cancellation criterion

@param fair whether to be fair
@param stopper the cancellation criterion
geode-core/src/main/java/org/apache/geode/internal/util/concurrent/StoppableReentrantLock.java