protected final class SharingBufferReaderProvider.PerDirectoryLatestReader extends Object
| Modifier and Type | Field and Description |
|---|---|
SharingBufferReaderProvider.ReaderUsagePair |
current
Reference to the most current IndexReader for a DirectoryProvider;
guarded by lockOnReplaceCurrent;
|
| Constructor and Description |
|---|
SharingBufferReaderProvider.PerDirectoryLatestReader(Directory directory) |
| Modifier and Type | Method and Description |
|---|---|
DirectoryReader |
refreshAndGet()
Gets an updated IndexReader for the current Directory;
the index status will be checked.
|
public SharingBufferReaderProvider.ReaderUsagePair current
public SharingBufferReaderProvider.PerDirectoryLatestReader(Directory directory) throws IOException
directory - The Directory for which we manage the IndexReader.IOException - when the index initialization fails.public DirectoryReader refreshAndGet()
Copyright © 2006-2015 Red Hat, Inc. All Rights Reserved