Method Unlock
Unlock(Directory)
Forcibly unlocks the taxonomy in the named directory.
Caution: this should only be used by failure recovery code, when it is known that no other process nor thread is in fact currently accessing this taxonomy.
This method is unnecessary if your Directory uses a NativeFSLockFactory instead of the default SimpleFSLockFactory. When the "native" lock is used, a lock does not stay behind forever when the process using it dies.
Declaration
public static void Unlock(Directory directory)
Parameters
Type | Name | Description |
---|---|---|
Directory | directory |