java.lang.Object
org.apache.lucene.index.IndexWriter.EventQueue
- All Implemented Interfaces:
Closeable
,AutoCloseable
- Enclosing class:
IndexWriter
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate boolean
private final Semaphore
private final Queue
<IndexWriter.Event> private final IndexWriter
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate void
acquire()
(package private) boolean
add
(IndexWriter.Event event) void
close()
(package private) void
private 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:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
-