org.hibernate.search.indexes.impl

## Class PeriodicRefreshingReaderProvider.PerDirectoryLatestReader

- java.lang.Object
- - org.hibernate.search.indexes.impl.PeriodicRefreshingReaderProvider.PerDirectoryLatestReader

- Enclosing class:
    PeriodicRefreshingReaderProvider

      protected final class PeriodicRefreshingReaderProvider.PerDirectoryLatestReader
      extends Object

  An instance for each DirectoryProvider, pointing to the "current" ReaderUsagePair for each DirectoryProvider.

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `PerDirectoryLatestReader(Directory directory)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `DirectoryReader` | `getLatestReader()`
    `void` | `refreshIfNeeded()`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### PerDirectoryLatestReader

          public PerDirectoryLatestReader(Directory directory)
                                   throws IOException

      Parameters:
        `directory` - The `Directory` for which we manage the `IndexReader`.
      Throws:
        `IOException` - when the index initialization fails.

  - ### Method Detail

    - #### getLatestReader

          public DirectoryReader getLatestReader()

    - #### refreshIfNeeded

          public void refreshIfNeeded()

Copyright © 2006-2017 Red Hat, Inc. All Rights Reserved