@Override public BulkNodeClient waitForResponses(TimeValue maxWaitTime) throws InterruptedException { if (closed) { throw new ElasticsearchIllegalStateException("client is closed"); } BulkProcessorHelper.waitFor(bulkProcessor, maxWaitTime); return this; }
@Override public BulkNodeClient flushIngest() { if (closed) { throw new ElasticsearchIllegalStateException("client is closed"); } logger.debug("flushing bulk processor"); BulkProcessorHelper.flush(bulkProcessor); return this; }