java.lang.Object
org.apache.lucene.index.IndexWriter.EventQueue
- All Implemented Interfaces:
Closeable,AutoCloseable
- Enclosing class:
IndexWriter
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate booleanprivate final Semaphoreprivate final Queue<IndexWriter.Event> private final IndexWriter -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidacquire()(package private) booleanadd(IndexWriter.Event event) voidclose()(package private) voidprivate void
-
Field Details
-
closed
private volatile boolean closed -
permits
-
queue
-
writer
-
-
Constructor Details
-
EventQueue
EventQueue(IndexWriter writer)
-
-
Method Details
-
acquire
private void acquire() -
add
-
processEvents
- Throws:
IOException
-
processEventsInternal
- Throws:
IOException
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-