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 TypeMethodDescriptionvoid
add
(BulkOperation operation) void
add
(BulkOperation operation, Context context) void
void
add
(Function<BulkOperation.Builder, ObjectBuilder<BulkOperation>> f, Context context) void
close()
void
flush()
int
int
long
maxSize()
static <Context> BulkIngester<Context>
of
(Function<BulkIngester.Builder<Context>, BulkIngester.Builder<Context>> f) long
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.long
Statistics: the number of operations that were added to this ingester since it was created.long
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.long
Statistics: 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.maxConcurrentRequests
BulkIngester.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:
close
in interfaceAutoCloseable
-
of
public static <Context> BulkIngester<Context> of(Function<BulkIngester.Builder<Context>, BulkIngester.Builder<Context>> f)
-