- All Implemented Interfaces:
public class NoopSegmentReadLocker extends Object implements SegmentReadLockerNoopSegmentReadLocker ignores requests to apply a readlock, but also ignores requests to delete files. It might be a good choice for read-only indexes, or cases in which leaving unused segments in the index is not considered a problem.
- Sanne Grinovero
Constructors Constructor Description
All Methods Instance Methods Concrete Methods Modifier and Type Method Description
acquireReadLock(String filename)doesn't do anything and returns true
deleteOrReleaseReadLock(String filename)doesn't do anything
public boolean acquireReadLock(String filename)doesn't do anything and returns true
- Specified by:
filename- of the file to acquire the lock at
- true if the lock was acquired, false if the implementation detects the file does not exist, or that it's being deleted by some other thread.
- See Also: