public boolean tryLock() {
      try {
        cache.getCancelCriterion().checkCancelInProgress(null);
        basicTryLock(PartitionedRegionHelper.DEFAULT_WAIT_PER_RETRY_ITERATION);
      } catch (LockServiceDestroyedException e) {
        cache.getCancelCriterion().checkCancelInProgress(null);
        throw e;
      }
      return lockOwned;
    }
Attempts to lock the given name (provided during construction) uninterruptibly

@return true if the lock was acquired, otherwise false.
geode-core/src/main/java/org/apache/geode/internal/cache/PartitionedRegion.java