@Singleton @Named(value="file-lock") public class FileLockNamedLockFactory extends NamedLockFactorySupport implements FileSystemFriendly
FileLockNamedLock
s. 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, shutdown
public static final String NAME
public FileLockNamedLockFactory()
protected NamedLockSupport createLock(String name)
NamedLockFactorySupport
NamedLockSupport
for given name
, this method must never
return null
.createLock
in class NamedLockFactorySupport
protected void destroyLock(String name)
NamedLockFactorySupport
destroyLock
in class NamedLockFactorySupport
Copyright © 2010–2022 The Apache Software Foundation. All rights reserved.