Class ThreadCount.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<ThreadCount.Builder>
co.elastic.clients.elasticsearch.nodes.ThreadCount.Builder
- All Implemented Interfaces:
WithJson<ThreadCount.Builder>
,ObjectBuilder<ThreadCount>
- Enclosing class:
- ThreadCount
public static class ThreadCount.Builder
extends WithJsonObjectBuilderBase<ThreadCount.Builder>
implements ObjectBuilder<ThreadCount>
Builder for
ThreadCount
.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal ThreadCount.Builder
Number of active threads in the thread pool.build()
Builds aThreadCount
.final ThreadCount.Builder
Number of tasks completed by the thread pool executor.final ThreadCount.Builder
Highest number of active threads in the thread pool.final ThreadCount.Builder
Number of tasks in queue for the thread pool.final ThreadCount.Builder
Number of tasks rejected by the thread pool executor.protected ThreadCount.Builder
self()
final ThreadCount.Builder
Number of threads in the thread pool.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
-
active
Number of active threads in the thread pool.API name:
active
-
completed
Number of tasks completed by the thread pool executor.API name:
completed
-
largest
Highest number of active threads in the thread pool.API name:
largest
-
queue
Number of tasks in queue for the thread pool.API name:
queue
-
rejected
Number of tasks rejected by the thread pool executor.API name:
rejected
-
threads
Number of threads in the thread pool.API name:
threads
-
self
- Specified by:
self
in classWithJsonObjectBuilderBase<ThreadCount.Builder>
-
build
Builds aThreadCount
.- Specified by:
build
in interfaceObjectBuilder<ThreadCount>
- Throws:
NullPointerException
- if some of the required fields are null.
-