Package io.debezium.relational
Class RelationalSnapshotChangeEventSource.ThreadedSnapshotExecutor
java.lang.Object
io.debezium.relational.RelationalSnapshotChangeEventSource.ThreadedSnapshotExecutor
- All Implemented Interfaces:
AutoCloseable
- Enclosing class:
RelationalSnapshotChangeEventSource<P extends Partition,O extends OffsetContext>
private static class RelationalSnapshotChangeEventSource.ThreadedSnapshotExecutor
extends Object
implements AutoCloseable
Manages threaded execution of snapshot work using a thread pool.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final CompletionService<Void> private final ExecutorServiceprivate int -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
executorService
-
completionService
-
submittedTasks
private int submittedTasks
-
-
Constructor Details
-
ThreadedSnapshotExecutor
ThreadedSnapshotExecutor(int threadCount, String description)
-
-
Method Details
-
submit
-
awaitCompletion
-
close
public void close()- Specified by:
closein interfaceAutoCloseable
-