public final class NoLockFactory extends LockFactory
LockFactory
to disable locking entirely.
This is a singleton, you have to use INSTANCE
.LockFactory
Modifier and Type | Field and Description |
---|---|
static NoLockFactory |
INSTANCE
The singleton
|
Modifier and Type | Method and Description |
---|---|
Lock |
obtainLock(Directory dir,
String lockName)
Return a new obtained Lock instance identified by lockName.
|
public static final NoLockFactory INSTANCE
public Lock obtainLock(Directory dir, String lockName)
LockFactory
obtainLock
in class LockFactory
lockName
- name of the lock to be created.Copyright © 2000-2021 Apache Software Foundation. All Rights Reserved.