protected final class PeriodicRefreshingReaderProvider.ReaderUsagePair extends Object
Modifier and Type | Field and Description |
---|---|
DirectoryReader |
reader |
protected AtomicInteger |
usageCounter
When reaching 0 (always test on change) the reader should be really
closed and then discarded.
|
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes the
IndexReader if no other resource is using it
in which case the reference to this container will also be removed. |
String |
toString() |
public final DirectoryReader reader
protected final AtomicInteger usageCounter
Copyright © 2006-2017 Red Hat, Inc. All Rights Reserved