this.semaphore = new InterProcessSemaphoreV2(client, path, numberOfLeases);
}
@Override
public DistributedLease acquire(long time, TimeUnit unit) throws Exception {
Lease lease = semaphore.acquire(time, unit);
if(lease != null){
return new LeaseHolder(lease);
}else{
return null;
}