Class LocalSemaphoreNamedLockFactory
java.lang.Object
org.eclipse.aether.named.support.NamedLockFactorySupport
org.eclipse.aether.named.providers.LocalSemaphoreNamedLockFactory
- All Implemented Interfaces:
NamedLockFactory
@Singleton
@Named("semaphore-local")
public class LocalSemaphoreNamedLockFactory
extends NamedLockFactorySupport
A JVM-local named lock factory that uses named
Semaphore
s.-
Field Summary
Fields inherited from class org.eclipse.aether.named.support.NamedLockFactorySupport
logger, SYSTEM_PROP_DIAGNOSTIC_ENABLED
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected AdaptedSemaphoreNamedLock
createLock
(NamedLockKey key) Implementations shall create and returnNamedLockSupport
for givenname
, this method must never returnnull
.Methods inherited from class org.eclipse.aether.named.support.NamedLockFactorySupport
closeLock, destroyLock, doGetLock, doShutdown, getLock, getLockAndRefTrack, isDiagnosticEnabled, onFailure, shutdown
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.eclipse.aether.named.NamedLockFactory
getLock
-
Field Details
-
NAME
- See Also:
-
-
Constructor Details
-
LocalSemaphoreNamedLockFactory
public LocalSemaphoreNamedLockFactory()
-
-
Method Details
-
createLock
Description copied from class:NamedLockFactorySupport
Implementations shall create and returnNamedLockSupport
for givenname
, this method must never returnnull
.- Specified by:
createLock
in classNamedLockFactorySupport
-