public void stop() { try { bulkProcessor.flush(flushTimeoutMs); } catch (Exception e) { log.warn("Failed to flush during stop", e); } bulkProcessor.stop(); bulkProcessor.awaitStop(flushTimeoutMs); }
public void flush() { bulkProcessor.flush(flushTimeoutMs); }