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 TypeMethodDescriptionvoid
release
(int perms) boolean
tryAcquire
(int perms, long time, TimeUnit unit)
-
Field Details
-
semaphore
-
-
Constructor Details
-
JVMSemaphore
-
-
Method Details
-
tryAcquire
- Specified by:
tryAcquire
in interfaceAdaptedSemaphoreNamedLock.AdaptedSemaphore
- Throws:
InterruptedException
-
release
public void release(int perms) - Specified by:
release
in interfaceAdaptedSemaphoreNamedLock.AdaptedSemaphore
-