@Singleton @Named(value="file-lock") public class FileLockNamedLockFactory extends NamedLockFactorySupport implements FileSystemFriendly
FileLockNamedLocks. This is a bit special implementation, as it
expects locks names to be fully qualified absolute file system paths.| Modifier and Type | Field and Description |
|---|---|
static String |
NAME |
logger| Constructor and Description |
|---|
FileLockNamedLockFactory() |
| Modifier and Type | Method and Description |
|---|---|
protected NamedLockSupport |
createLock(String name)
Implementations shall create and return
NamedLockSupport for given name, this method must never
return null. |
protected void |
destroyLock(String name)
Implementation may override this (empty) method to perform some sort of implementation specific cleanup for
given lock name.
|
closeLock, finalize, getLock, shutdownpublic static final String NAME
public FileLockNamedLockFactory()
protected NamedLockSupport createLock(String name)
NamedLockFactorySupportNamedLockSupport for given name, this method must never
return null.createLock in class NamedLockFactorySupportprotected void destroyLock(String name)
NamedLockFactorySupportdestroyLock in class NamedLockFactorySupportCopyright © 2010–2022 The Apache Software Foundation. All rights reserved.