public class LocalClusterCoordinator.LocalSemaphore extends Object implements DistributedSemaphore
DistributedSemaphore.DistributedLease
Constructor and Description |
---|
LocalSemaphore(int size) |
Modifier and Type | Method and Description |
---|---|
DistributedSemaphore.DistributedLease |
acquire(long timeout,
TimeUnit timeUnit) |
public DistributedSemaphore.DistributedLease acquire(long timeout, TimeUnit timeUnit) throws Exception
acquire
in interface DistributedSemaphore
Exception
Copyright © 1970 The Apache Software Foundation. All rights reserved.