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 namedSemaphore
s.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
NAME
-
Fields inherited from class org.eclipse.aether.named.support.NamedLockFactorySupport
logger
-
-
Constructor Summary
Constructors Constructor Description LocalSemaphoreNamedLockFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected AdaptedSemaphoreNamedLock
createLock(java.lang.String name)
Implementations shall create and returnNamedLockSupport
for givenname
, this method must never returnnull
.-
Methods inherited from class org.eclipse.aether.named.support.NamedLockFactorySupport
closeLock, destroyLock, finalize, getLock, shutdown
-
-
-
-
Field Detail
-
NAME
public static final java.lang.String NAME
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
LocalSemaphoreNamedLockFactory
public LocalSemaphoreNamedLockFactory()
-
-
Method Detail
-
createLock
protected AdaptedSemaphoreNamedLock createLock(java.lang.String name)
Description copied from class:NamedLockFactorySupport
Implementations shall create and returnNamedLockSupport
for givenname
, this method must never returnnull
.- Specified by:
createLock
in classNamedLockFactorySupport
-
-