private long getLockTimeoutForLock(long time, TimeUnit unit) { // package-private to avoid
                                                                 // synthetic
    // accessor
    if (time == -1) {
      return -1;
    }
    return TimeUnit.MILLISECONDS.convert(time, unit);
  }
Returns the lock timeout value to use for DistributedLock and RegionDistributedLock. -1 is
supported as a lock that never times out.
geode-core/src/main/java/org/apache/geode/internal/cache/DistributedRegion.java