Interface IndexReader.ClosedListener

  • Enclosing class:
    IndexReader
    Functional Interface:
    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

    @FunctionalInterface
    public static interface IndexReader.ClosedListener
    A listener that is called when a resource gets closed.
    • Method Detail

      • onClose

        void onClose​(IndexReader.CacheKey key)
              throws java.io.IOException
        Invoked when the resource (segment core, or index reader) that is being cached on is closed.
        Throws:
        java.io.IOException