Class BulkIngester<Context>
java.lang.Object
co.elastic.clients.elasticsearch._helpers.bulk.BulkIngester<Context>
- All Implemented Interfaces:
AutoCloseable
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(BulkOperation operation) voidadd(BulkOperation operation, Context context) voidvoidadd(Function<BulkOperation.Builder, ObjectBuilder<BulkOperation>> f, Context context) voidclose()voidflush()intintlongmaxSize()static <Context> BulkIngester<Context>of(Function<BulkIngester.Builder<Context>, BulkIngester.Builder<Context>> f) longStatistics: the number of operations that had to wait before being added because the operation buffer was full and the number of http requests in flight exceeded the configured maximum number.longStatistics: the number of operations that were added to this ingester since it was created.longStatistics: the number of bulk requests that could not be sent immediately because the number of http requests in flight exceeded the configured maximum number.longStatistics: the number of bulk requests that were produced by this ingester since it was created.
-
Method Details
-
maxOperations
public int maxOperations() -
maxSize
public long maxSize() -
maxConcurrentRequests
public int maxConcurrentRequests() -
flushInterval
-
operationsCount
public long operationsCount()Statistics: the number of operations that were added to this ingester since it was created. -
operationContentionsCount
public long operationContentionsCount()Statistics: the number of operations that had to wait before being added because the operation buffer was full and the number of http requests in flight exceeded the configured maximum number.- See Also:
-
BulkIngester.Builder.maxConcurrentRequestsBulkIngester.Builder.maxOperations(int)BulkIngester.Builder.maxSize(long)
-
requestCount
public long requestCount()Statistics: the number of bulk requests that were produced by this ingester since it was created. -
requestContentionsCount
public long requestContentionsCount()Statistics: the number of bulk requests that could not be sent immediately because the number of http requests in flight exceeded the configured maximum number.- See Also:
-
BulkIngester.Builder.maxConcurrentRequests
-
flush
public void flush() -
add
-
add
-
add
-
add
-
close
public void close()- Specified by:
closein interfaceAutoCloseable
-
of
public static <Context> BulkIngester<Context> of(Function<BulkIngester.Builder<Context>, BulkIngester.Builder<Context>> f)
-