Constructor NativeFSLockFactory
NativeFSLockFactory()
Create a NativeFSLockFactory instance, with null (unset) lock directory. When you pass this factory to a FSDirectory subclass, the lock directory is automatically set to the directory itsself. Be sure to create one instance for each directory your create!
Declaration
public NativeFSLockFactory()
NativeFSLockFactory(String)
Create a NativeFSLockFactory instance, storing lock files into the specified lockDirName:
Declaration
public NativeFSLockFactory(String lockDirName)
Parameters
Type | Name | Description |
---|---|---|
System. |
lockDirName | where lock files are created. |
NativeFSLockFactory(IO.DirectoryInfo)
Create a NativeFSLockFactory instance, storing lock files into the specified lockDir:
Declaration
public NativeFSLockFactory(IO.DirectoryInfo lockDir)
Parameters
Type | Name | Description |
---|---|---|
System. |
lockDir | where lock files are created. |