Greetings,
Currently IoTDB Session API only support to insert data using synchronous interfaces, such as insertRecord(), insertTablet(), etc. Using synchronous interfaces, client thread has to wait until the insertion finishes. We are about to support asynchronous session API in future 0.11 release. In both Session and SessionPool, an additional asynchronous insert interface is provided for each sync method. Compared to sync methods, users need to provide a timeout value and a callback for exception handling when invoking async methods. For example, insertTablet(Tablet tablet, boolean sorted) The async version of insertTablet(): asyncInsertTablet(Tablet tablet, boolean sorted, long timeout, BiConsumer<Tablet, Throwable> callback) User can specify a custom callback to manage expception when insertion failed. If no callback given, the method will handle exception in default way. The PR[1] is ready now. Please take a look if you are interested in. [1] https://github.com/apache/iotdb/pull/1337 Best regards, ---------------------- Wei Shao
