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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal Client.BuilderReported agent for the HTTP client.build()Builds aClient.final Client.BuilderclosedTimeMillis(Long value) Time at which the client closed the connection if the connection is closed.final Client.BuilderUnique ID for the HTTP client.final Client.BuilderlastRequestTimeMillis(Long value) Time of the most recent request from this client.final Client.BuilderThe URI of the client’s most recent request.final Client.BuilderlocalAddress(String value) Local address for the HTTP connection.final Client.BuilderopenedTimeMillis(Long value) Time at which the client opened the connection.final Client.BuilderremoteAddress(String value) Remote address for the HTTP connection.final Client.BuilderrequestCount(Long value) Number of requests from this client.final Client.BuilderrequestSizeBytes(Long value) Cumulative size in bytes of all requests from this client.protected Client.Builderself()final Client.BuilderValue from the client’sx-opaque-idHTTP header.Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJsonMethods 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-idHTTP header. If unavailable, this property is not included in the response.API name:
x_opaque_id -
self
- Specified by:
selfin classWithJsonObjectBuilderBase<Client.Builder>
-
build
Builds aClient.- Specified by:
buildin interfaceObjectBuilder<Client>- Throws:
NullPointerException- if some of the required fields are null.
-