@@ -101,6 +101,15 @@ public String value() {
101101 */
102102 public InfluxDB enableBatch (final int actions , final int flushDuration , final TimeUnit flushDurationTimeUnit );
103103
104+ /**
105+ * Enable batching of single Point writes as {@link #enableBatch(int, int, TimeUnit, ThreadFactory, Consumer<Throwable>)}
106+ * using with a exceptionHandler that does nothing.
107+ *
108+ * @see #enableBatch(int, int, TimeUnit, ThreadFactory, Consumer<Throwable>)
109+ */
110+ public InfluxDB enableBatch (final int actions , final int flushDuration , final TimeUnit flushDurationTimeUnit ,
111+ final ThreadFactory threadFactory );
112+
104113 /**
105114 * Enable batching of single Point writes to speed up writes significant. If either actions or
106115 * flushDurations is reached first, a batch write is issued.
@@ -113,10 +122,12 @@ public String value() {
113122 * the time to wait at most.
114123 * @param flushDurationTimeUnit
115124 * @param threadFactory
125+ * @param exceptionHandler
126+ * a consumer function to handle asynchronous errors
116127 * @return the InfluxDB instance to be able to use it in a fluent manner.
117128 */
118129 public InfluxDB enableBatch (final int actions , final int flushDuration , final TimeUnit flushDurationTimeUnit ,
119- final ThreadFactory threadFactory );
130+ final ThreadFactory threadFactory , final Consumer < Throwable > exceptionHandler );
120131
121132 /**
122133 * Disable Batching.
0 commit comments