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
Semaphores.-
Field Summary
FieldsFields inherited from class NamedLockFactorySupport
logger, SYSTEM_PROP_DIAGNOSTIC_ENABLED -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected AdaptedSemaphoreNamedLockcreateLock(NamedLockKey key) Implementations shall create and returnNamedLockSupportfor givenname, this method must never returnnull.Methods inherited from class NamedLockFactorySupport
closeLock, destroyLock, doGetLock, doShutdown, getLock, getLockAndRefTrack, isDiagnosticEnabled, onFailure, shutdownMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface NamedLockFactory
getLock
-
Field Details
-
NAME
-
-
Constructor Details
-
LocalSemaphoreNamedLockFactory
public LocalSemaphoreNamedLockFactory()
-
-
Method Details
-
createLock
Description copied from class:NamedLockFactorySupportImplementations shall create and returnNamedLockSupportfor givenname, this method must never returnnull.- Specified by:
createLockin classNamedLockFactorySupport
-