Interface IndexWriter.Event

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

    @FunctionalInterface
    private static interface IndexWriter.Event
    Interface for internal atomic events. See DocumentsWriter for details. Events are executed concurrently and no order is guaranteed. Each event should only rely on the serializeability within its process method. All actions that must happen before or after a certain action must be encoded inside the process(IndexWriter) method.
    • Method Detail

      • process

        void process​(IndexWriter writer)
              throws java.io.IOException
        Processes the event. This method is called by the IndexWriter passed as the first argument.
        Parameters:
        writer - the IndexWriter that executes the event.
        Throws:
        java.io.IOException - if an IOException occurs