public class NoLockFactory extends LockFactory
LockFactory
to disable locking entirely.
Only one instance of this lock is created. You should call getNoLockFactory()
to get the instance.LockFactory
lockPrefix
Constructor | Description |
---|---|
NoLockFactory() |
Deprecated.
This constructor was not intended to be public and should not be used.
|
Modifier and Type | Method | Description |
---|---|---|
void |
clearLock(String lockName) |
Attempt to clear (forcefully unlock and remove) the
specified lock.
|
static NoLockFactory |
getNoLockFactory() |
|
Lock |
makeLock(String lockName) |
Return a new Lock instance identified by lockName.
|
getLockPrefix, setLockPrefix
@Deprecated public NoLockFactory()
getNoLockFactory()
public static NoLockFactory getNoLockFactory()
public Lock makeLock(String lockName)
LockFactory
makeLock
in class LockFactory
lockName
- name of the lock to be created.public void clearLock(String lockName)
LockFactory
clearLock
in class LockFactory
lockName
- name of the lock to be cleared.Copyright © 2000-2018 Apache Software Foundation. All Rights Reserved.