public abstract class LockFactory extends Object
Base class for Locking implementation.
instances of this class to implement locking.
Special care needs to be taken if you change the locking implementation: First be certain that no writer is in fact writing to the index otherwise you can easily corrupt your index. Be sure to do the LockFactory change on all Lucene instances and clean up all leftover lock files before starting the new configuration for the first time. Different implementations can not work together!
|Constructor and Description|
|Modifier and Type||Method and Description|
Return a new obtained Lock instance identified by lockName.
public abstract Lock obtainLock(Directory dir, String lockName) throws IOException
Copyright © 2000-2018 Apache Software Foundation. All Rights Reserved.