public abstract class FSLockFactory extends LockFactory
Directory
is an FSDirectory
.Constructor and Description |
---|
FSLockFactory() |
Modifier and Type | Method and Description |
---|---|
static FSLockFactory |
getDefault()
Returns the default locking implementation for this platform.
|
protected abstract Lock |
makeFSLock(FSDirectory dir,
String lockName)
Implement this method to create a lock for a FSDirectory instance.
|
Lock |
makeLock(Directory dir,
String lockName)
Return a new Lock instance identified by lockName.
|
public static final FSLockFactory getDefault()
NativeFSLockFactory
.public final Lock makeLock(Directory dir, String lockName)
LockFactory
makeLock
in class LockFactory
lockName
- name of the lock to be created.protected abstract Lock makeFSLock(FSDirectory dir, String lockName)
Copyright © 2000-2015 Apache Software Foundation. All Rights Reserved.