SegmentReadLocker implementations have to make sure that segments are not deleted while they are being used by an IndexReader.
DistributedSegmentReadLocker stores reference counters in the cache to keep track of the number of clients still needing to be able to read a segment.
NoopSegmentReadLocker ignores requests to apply a readlock, but also ignores requests to delete files.
Copyright © 2017 JBoss, a division of Red Hat. All Rights Reserved.