@Singleton @Named(value="semaphore-local") public class LocalSemaphoreNamedLockFactory extends NamedLockFactorySupport
Semaphore
s.Modifier and Type | Field and Description |
---|---|
static String |
NAME |
logger
Constructor and Description |
---|
LocalSemaphoreNamedLockFactory() |
Modifier and Type | Method and Description |
---|---|
protected AdaptedSemaphoreNamedLock |
createLock(String name)
Implementations shall create and return
NamedLockSupport for given name , this method must never
return null . |
closeLock, destroyLock, finalize, getLock, shutdown
public static final String NAME
public LocalSemaphoreNamedLockFactory()
protected AdaptedSemaphoreNamedLock createLock(String name)
NamedLockFactorySupport
NamedLockSupport
for given name
, this method must never
return null
.createLock
in class NamedLockFactorySupport
Copyright © 2010–2022 The Apache Software Foundation. All rights reserved.