@Singleton @Named(value="semaphore-local") public class LocalSemaphoreNamedLockFactory extends NamedLockFactorySupport
Semaphore
s.Modifier and Type | Class and Description |
---|---|
private static class |
LocalSemaphoreNamedLockFactory.JVMSemaphore
Adapted JVM
Semaphore . |
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
NAME |
logger
Constructor and Description |
---|
LocalSemaphoreNamedLockFactory() |
Modifier and Type | Method and Description |
---|---|
protected AdaptedSemaphoreNamedLock |
createLock(java.lang.String name)
Implementations shall create and return
NamedLockSupport for given name , this method must never
return null . |
closeLock, destroyLock, getLock, shutdown
public static final java.lang.String NAME
protected AdaptedSemaphoreNamedLock createLock(java.lang.String name)
NamedLockFactorySupport
NamedLockSupport
for given name
, this method must never
return null
.createLock
in class NamedLockFactorySupport