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 SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionbuild()Builds aHttp.final Http.BuilderInformation on current and recently-closed HTTP client connections.final Http.BuilderInformation on current and recently-closed HTTP client connections.final Http.BuilderInformation on current and recently-closed HTTP client connections.final Http.BuildercurrentOpen(Integer value) Current number of open HTTP connections for the node.final Http.BuilderRequired - Detailed HTTP stats broken down by routefinal Http.Builderroutes(String key, Function<HttpRoute.Builder, ObjectBuilder<HttpRoute>> fn) Required - Detailed HTTP stats broken down by routefinal Http.BuilderRequired - Detailed HTTP stats broken down by routeprotected Http.Builderself()final Http.BuildertotalOpened(Long value) Total number of HTTP connections opened for the node.Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBasewithJsonMethods inherited from class co.elastic.clients.util.ObjectBuilderBase_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
- 
Constructor Details- 
Builderpublic Builder()
 
- 
- 
Method Details- 
currentOpenCurrent number of open HTTP connections for the node.API name: current_open
- 
totalOpenedTotal number of HTTP connections opened for the node.API name: total_opened
- 
clientsInformation on current and recently-closed HTTP client connections. Clients that have been closed longer than thehttp.client_stats.closed_channels.max_agesetting will not be represented here.API name: clientsAdds all elements of listtoclients.
- 
clientsInformation on current and recently-closed HTTP client connections. Clients that have been closed longer than thehttp.client_stats.closed_channels.max_agesetting will not be represented here.API name: clientsAdds one or more values to clients.
- 
clientsInformation on current and recently-closed HTTP client connections. Clients that have been closed longer than thehttp.client_stats.closed_channels.max_agesetting will not be represented here.API name: clientsAdds a value to clientsusing a builder lambda.
- 
routesRequired - Detailed HTTP stats broken down by routeAPI name: routesAdds all entries of maptoroutes.
- 
routesRequired - Detailed HTTP stats broken down by routeAPI name: routesAdds an entry to routes.
- 
routespublic final Http.Builder routes(String key, Function<HttpRoute.Builder, ObjectBuilder<HttpRoute>> fn) Required - Detailed HTTP stats broken down by routeAPI name: routesAdds an entry to routesusing a builder lambda.
- 
self- Specified by:
- selfin class- WithJsonObjectBuilderBase<Http.Builder>
 
- 
buildBuilds aHttp.- Specified by:
- buildin interface- ObjectBuilder<Http>
- Throws:
- NullPointerException- if some of the required fields are null.
 
 
-