Class AdaptiveSelection.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<AdaptiveSelection.Builder>
co.elastic.clients.elasticsearch.nodes.AdaptiveSelection.Builder
- All Implemented Interfaces:
WithJson<AdaptiveSelection.Builder>
,ObjectBuilder<AdaptiveSelection>
- Enclosing class:
- AdaptiveSelection
public static class AdaptiveSelection.Builder
extends WithJsonObjectBuilderBase<AdaptiveSelection.Builder>
implements ObjectBuilder<AdaptiveSelection>
Builder for
AdaptiveSelection
.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionavgQueueSize
(Long value) The exponentially weighted moving average queue size of search requests on the keyed node.avgResponseTime
(Time value) The exponentially weighted moving average response time of search requests on the keyed node.The exponentially weighted moving average response time of search requests on the keyed node.avgResponseTimeNs
(Long value) The exponentially weighted moving average response time, in nanoseconds, of search requests on the keyed node.avgServiceTime
(Time value) The exponentially weighted moving average service time of search requests on the keyed node.The exponentially weighted moving average service time of search requests on the keyed node.avgServiceTimeNs
(Long value) The exponentially weighted moving average service time, in nanoseconds, of search requests on the keyed node.build()
Builds aAdaptiveSelection
.outgoingSearches
(Long value) The number of outstanding search requests to the keyed node from the node these stats are for.The rank of this node; used for shard selection when routing search requests.protected AdaptiveSelection.Builder
self()
Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJson
Methods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
avgQueueSize
The exponentially weighted moving average queue size of search requests on the keyed node.API name:
avg_queue_size
-
avgResponseTime
The exponentially weighted moving average response time of search requests on the keyed node.API name:
avg_response_time
-
avgResponseTime
public final AdaptiveSelection.Builder avgResponseTime(Function<Time.Builder, ObjectBuilder<Time>> fn) The exponentially weighted moving average response time of search requests on the keyed node.API name:
avg_response_time
-
avgResponseTimeNs
The exponentially weighted moving average response time, in nanoseconds, of search requests on the keyed node.API name:
avg_response_time_ns
-
avgServiceTime
The exponentially weighted moving average service time of search requests on the keyed node.API name:
avg_service_time
-
avgServiceTime
public final AdaptiveSelection.Builder avgServiceTime(Function<Time.Builder, ObjectBuilder<Time>> fn) The exponentially weighted moving average service time of search requests on the keyed node.API name:
avg_service_time
-
avgServiceTimeNs
The exponentially weighted moving average service time, in nanoseconds, of search requests on the keyed node.API name:
avg_service_time_ns
-
outgoingSearches
The number of outstanding search requests to the keyed node from the node these stats are for.API name:
outgoing_searches
-
rank
The rank of this node; used for shard selection when routing search requests.API name:
rank
-
self
- Specified by:
self
in classWithJsonObjectBuilderBase<AdaptiveSelection.Builder>
-
build
Builds aAdaptiveSelection
.- Specified by:
build
in interfaceObjectBuilder<AdaptiveSelection>
- Throws:
NullPointerException
- if some of the required fields are null.
-