Class Client.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<Client.Builder>
co.elastic.clients.elasticsearch.nodes.Client.Builder
- All Implemented Interfaces:
WithJson<Client.Builder>
,ObjectBuilder<Client>
- Enclosing class:
- Client
public static class Client.Builder
extends WithJsonObjectBuilderBase<Client.Builder>
implements ObjectBuilder<Client>
Builder for
Client
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal Client.Builder
Reported agent for the HTTP client.build()
Builds aClient
.final Client.Builder
closedTimeMillis
(Long value) Time at which the client closed the connection if the connection is closed.final Client.Builder
Unique ID for the HTTP client.final Client.Builder
lastRequestTimeMillis
(Long value) Time of the most recent request from this client.final Client.Builder
The URI of the client’s most recent request.final Client.Builder
localAddress
(String value) Local address for the HTTP connection.final Client.Builder
openedTimeMillis
(Long value) Time at which the client opened the connection.final Client.Builder
remoteAddress
(String value) Remote address for the HTTP connection.final Client.Builder
requestCount
(Long value) Number of requests from this client.final Client.Builder
requestSizeBytes
(Long value) Cumulative size in bytes of all requests from this client.protected Client.Builder
self()
final Client.Builder
Value from the client’sx-opaque-id
HTTP header.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
-
id
Unique ID for the HTTP client.API name:
id
-
agent
Reported agent for the HTTP client. If unavailable, this property is not included in the response.API name:
agent
-
localAddress
Local address for the HTTP connection.API name:
local_address
-
remoteAddress
Remote address for the HTTP connection.API name:
remote_address
-
lastUri
The URI of the client’s most recent request.API name:
last_uri
-
openedTimeMillis
Time at which the client opened the connection.API name:
opened_time_millis
-
closedTimeMillis
Time at which the client closed the connection if the connection is closed.API name:
closed_time_millis
-
lastRequestTimeMillis
Time of the most recent request from this client.API name:
last_request_time_millis
-
requestCount
Number of requests from this client.API name:
request_count
-
requestSizeBytes
Cumulative size in bytes of all requests from this client.API name:
request_size_bytes
-
xOpaqueId
Value from the client’sx-opaque-id
HTTP header. If unavailable, this property is not included in the response.API name:
x_opaque_id
-
self
- Specified by:
self
in classWithJsonObjectBuilderBase<Client.Builder>
-
build
Builds aClient
.- Specified by:
build
in interfaceObjectBuilder<Client>
- Throws:
NullPointerException
- if some of the required fields are null.
-