Class DelegateSemaphore
java.lang.Object
java.util.concurrent.Semaphore
com.fastasyncworldedit.bukkit.adapter.DelegateSemaphore
- All Implemented Interfaces:
Serializable
- See Also:
-
Constructor Summary
-
Method Summary
Methods inherited from class java.util.concurrent.Semaphore
acquire, acquireUninterruptibly, acquireUninterruptibly, availablePermits, drainPermits, getQueuedThreads, getQueueLength, hasQueuedThreads, isFair, reducePermits, release, toString, tryAcquire, tryAcquire, tryAcquire
-
Constructor Details
-
DelegateSemaphore
-
-
Method Details
-
tryAcquire
public boolean tryAcquire()- Overrides:
tryAcquire
in classSemaphore
-
acquire
- Overrides:
acquire
in classSemaphore
- Throws:
InterruptedException
-
release
public void release()
-