类的使用
com.cnosdb.BatchOptions
使用BatchOptions的程序包
-
com.cnosdb中BatchOptions的使用
声明为BatchOptions的com.cnosdb中的字段返回BatchOptions的com.cnosdb中的方法修饰符和类型方法说明BatchOptions.actions(int actions) BatchOptions.bufferLimit(int bufferLimit) The client maintains a buffer for failed writes so that the writes will be retried later on.BatchOptions.consistency(CnosDB.ConsistencyLevel consistency) BatchOptions.dropActionsOnQueueExhaustion(boolean dropActionsOnQueueExhaustion) Set to define the behaviour when the action queue exhausts.BatchOptions.droppedActionHandler(Consumer<Point> droppedActionHandler) Handler to handle dropped actions due to queue actions.BatchOptions.exceptionHandler(BiConsumer<Iterable<Point>, Throwable> exceptionHandler) BatchOptions.flushDuration(int flushDuration) BatchOptions.jitterDuration(int jitterDuration) Jitters the batch flush interval by a random amount.Set the time precision to use for the whole batch.BatchOptions.threadFactory(ThreadFactory threadFactory) 参数类型为BatchOptions的com.cnosdb中的方法修饰符和类型方法说明CnosDB.enableBatch(BatchOptions batchOptions) Enable batching of single Point writes to speed up writes significantly. -
com.cnosdb.impl中BatchOptions的使用
参数类型为BatchOptions的com.cnosdb.impl中的方法