Class LocalSemaphoreNamedLockFactory.JVMSemaphore
java.lang.Object
org.eclipse.aether.named.providers.LocalSemaphoreNamedLockFactory.JVMSemaphore
- All Implemented Interfaces:
AdaptedSemaphoreNamedLock.AdaptedSemaphore
- Enclosing class:
LocalSemaphoreNamedLockFactory
private static final class LocalSemaphoreNamedLockFactory.JVMSemaphore
extends Object
implements AdaptedSemaphoreNamedLock.AdaptedSemaphore
Adapted JVM
Semaphore.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidrelease(int perms) booleantryAcquire(int perms, long time, TimeUnit unit)
-
Field Details
-
semaphore
-
-
Constructor Details
-
JVMSemaphore
-
-
Method Details
-
tryAcquire
- Specified by:
tryAcquirein interfaceAdaptedSemaphoreNamedLock.AdaptedSemaphore- Throws:
InterruptedException
-
release
public void release(int perms) - Specified by:
releasein interfaceAdaptedSemaphoreNamedLock.AdaptedSemaphore
-