public static interface BulkOperator.Builder
| Modifier and Type | Method and Description |
|---|---|
BulkOperator |
build()
Constructs a new
BulkOperator from this builder. |
BulkOperator.Builder |
client(org.elasticsearch.client.RestClient client)
Initializes a builder instance with an Elasticsearch client.
|
BulkOperator.Builder |
concurrency(int concurrency)
Modifies the concurrency associated with this builder.
|
BulkOperator.Builder |
interval(Integer interval)
Modifies the interval associated with this builder.
|
BulkOperator.Builder |
lifecycle(BulkLifecycle lifecycle)
Modifies the lifecycle associated with this builder.
|
BulkOperator.Builder |
maxActions(Integer maxActions)
Modifies the max number of actions associated with this builder.
|
BulkOperator.Builder client(org.elasticsearch.client.RestClient client)
This client must not be null, as it's required for execution.
client - the RestClient to execute with.BulkOperator.Builder instance for chaining calls.BulkOperator.Builder concurrency(int concurrency)
The concurrency can not be set below 1, the builder will enforce this lower bound.
concurrency - the new concurrency value.BulkOperator.Builder instance for chaining calls.BulkOperator.Builder interval(Integer interval)
interval - the new scheduled interval.BulkOperator.Builder instance for chaining calls.BulkOperator.Builder lifecycle(BulkLifecycle lifecycle)
If you wish to unset a previously set lifecycle, you should
use NoopLifecycle rather than passing null.
lifecycle - the new lifecycle instance.BulkOperator.Builder instance for chaining calls.BulkOperator.Builder maxActions(Integer maxActions)
maxActions - the new maximum number of actions.BulkOperator.Builder instance for chaining calls.BulkOperator build()
BulkOperator from this builder.BulkOperator instance.Copyright © 2017. All rights reserved.