Class Http.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<Http.Builder>
co.elastic.clients.elasticsearch.nodes.Http.Builder
- All Implemented Interfaces:
WithJson<Http.Builder>
,ObjectBuilder<Http>
- Enclosing class:
- Http
public static class Http.Builder
extends WithJsonObjectBuilderBase<Http.Builder>
implements ObjectBuilder<Http>
Builder for
Http
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds aHttp
.final Http.Builder
Information on current and recently-closed HTTP client connections.final Http.Builder
Information on current and recently-closed HTTP client connections.final Http.Builder
Information on current and recently-closed HTTP client connections.final Http.Builder
currentOpen
(Integer value) Current number of open HTTP connections for the node.protected Http.Builder
self()
final Http.Builder
totalOpened
(Long value) Total number of HTTP connections opened for the node.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
-
currentOpen
Current number of open HTTP connections for the node.API name:
current_open
-
totalOpened
Total number of HTTP connections opened for the node.API name:
total_opened
-
clients
Information on current and recently-closed HTTP client connections. Clients that have been closed longer than thehttp.client_stats.closed_channels.max_age
setting will not be represented here.API name:
clients
Adds all elements of
list
toclients
. -
clients
Information on current and recently-closed HTTP client connections. Clients that have been closed longer than thehttp.client_stats.closed_channels.max_age
setting will not be represented here.API name:
clients
Adds one or more values to
clients
. -
clients
Information on current and recently-closed HTTP client connections. Clients that have been closed longer than thehttp.client_stats.closed_channels.max_age
setting will not be represented here.API name:
clients
Adds a value to
clients
using a builder lambda. -
self
- Specified by:
self
in classWithJsonObjectBuilderBase<Http.Builder>
-
build
Builds aHttp
.- Specified by:
build
in interfaceObjectBuilder<Http>
- Throws:
NullPointerException
- if some of the required fields are null.
-