@@ -101,6 +101,15 @@ public String value() {
101
101
*/
102
102
public InfluxDB enableBatch (final int actions , final int flushDuration , final TimeUnit flushDurationTimeUnit );
103
103
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
+
104
113
/**
105
114
* Enable batching of single Point writes to speed up writes significant. If either actions or
106
115
* flushDurations is reached first, a batch write is issued.
@@ -113,10 +122,12 @@ public String value() {
113
122
* the time to wait at most.
114
123
* @param flushDurationTimeUnit
115
124
* @param threadFactory
125
+ * @param exceptionHandler
126
+ * a consumer function to handle asynchronous errors
116
127
* @return the InfluxDB instance to be able to use it in a fluent manner.
117
128
*/
118
129
public InfluxDB enableBatch (final int actions , final int flushDuration , final TimeUnit flushDurationTimeUnit ,
119
- final ThreadFactory threadFactory );
130
+ final ThreadFactory threadFactory , final Consumer < Throwable > exceptionHandler );
120
131
121
132
/**
122
133
* Disable Batching.
0 commit comments