Class KafkaAsyncCloser
java.lang.Object
org.apache.drill.exec.store.kafka.KafkaAsyncCloser
- All Implemented Interfaces:
AutoCloseable
Closes Kafka resources asynchronously which result does not depend on close method
in order to improve query execution performance.
For example,
KafkaConsumer
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
void
close
(AutoCloseable autoCloseable) Closes given resource in separate thread using thread executor.
-
Constructor Details
-
KafkaAsyncCloser
public KafkaAsyncCloser()
-
-
Method Details
-
close
Closes given resource in separate thread using thread executor.- Parameters:
autoCloseable
- resource to close
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
-