Package org.eclipse.aether.named.support
Interface AdaptedSemaphoreNamedLock.AdaptedSemaphore
-
- Enclosing class:
- AdaptedSemaphoreNamedLock
public static interface AdaptedSemaphoreNamedLock.AdaptedSemaphore
Wrapper for semaphore-like stuff, that do not share common ancestor. Semaphore must be created to supportInteger.MAX_VALUE
permissions.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
release(int perms)
boolean
tryAcquire(int perms, long time, java.util.concurrent.TimeUnit unit)
-
-
-
Method Detail
-
tryAcquire
boolean tryAcquire(int perms, long time, java.util.concurrent.TimeUnit unit) throws java.lang.InterruptedException
- Throws:
java.lang.InterruptedException
-
release
void release(int perms)
-
-