Class ThreadPoolRecord.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<ThreadPoolRecord.Builder>
co.elastic.clients.elasticsearch.cat.thread_pool.ThreadPoolRecord.Builder
- All Implemented Interfaces:
WithJson<ThreadPoolRecord.Builder>,ObjectBuilder<ThreadPoolRecord>
- Enclosing class:
- ThreadPoolRecord
public static class ThreadPoolRecord.Builder
extends WithJsonObjectBuilderBase<ThreadPoolRecord.Builder>
implements ObjectBuilder<ThreadPoolRecord>
Builder for
ThreadPoolRecord.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal ThreadPoolRecord.BuilderThe number of active threads in the current thread pool.build()Builds aThreadPoolRecord.final ThreadPoolRecord.BuilderThe number of completed tasks.final ThreadPoolRecord.BuilderThe core number of active threads allowed in a scaling thread pool.final ThreadPoolRecord.BuilderephemeralNodeId(String value) The ephemeral node identifier.final ThreadPoolRecord.BuilderThe host name for the current node.final ThreadPoolRecord.BuilderThe IP address for the current node.final ThreadPoolRecord.BuilderThe thread keep alive time.final ThreadPoolRecord.BuilderThe highest number of active threads in the current thread pool.final ThreadPoolRecord.BuilderThe maximum number of active threads allowed in a scaling thread pool.final ThreadPoolRecord.BuilderThe thread pool name.final ThreadPoolRecord.BuilderThe persistent node identifier.final ThreadPoolRecord.BuilderThe node name.final ThreadPoolRecord.BuilderThe process identifier.final ThreadPoolRecord.BuilderThe number of threads in the current thread pool.final ThreadPoolRecord.BuilderThe bound transport port for the current node.final ThreadPoolRecord.BuilderThe number of tasks currently in queue.final ThreadPoolRecord.BuilderThe maximum number of tasks permitted in the queue.final ThreadPoolRecord.BuilderThe number of rejected tasks.protected ThreadPoolRecord.Builderself()final ThreadPoolRecord.BuilderThe number of active threads allowed in a fixed thread pool.final ThreadPoolRecord.BuilderThe thread pool type.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
-
nodeName
The node name.API name:
node_name -
nodeId
The persistent node identifier.API name:
node_id -
ephemeralNodeId
The ephemeral node identifier.API name:
ephemeral_node_id -
pid
The process identifier.API name:
pid -
host
The host name for the current node.API name:
host -
ip
The IP address for the current node.API name:
ip -
port
The bound transport port for the current node.API name:
port -
name
The thread pool name.API name:
name -
type
The thread pool type. Returned values includefixed,fixed_auto_queue_size,direct, andscaling.API name:
type -
active
The number of active threads in the current thread pool.API name:
active -
poolSize
The number of threads in the current thread pool.API name:
pool_size -
queue
The number of tasks currently in queue.API name:
queue -
queueSize
The maximum number of tasks permitted in the queue.API name:
queue_size -
rejected
The number of rejected tasks.API name:
rejected -
largest
The highest number of active threads in the current thread pool.API name:
largest -
completed
The number of completed tasks.API name:
completed -
core
The core number of active threads allowed in a scaling thread pool.API name:
core -
max
The maximum number of active threads allowed in a scaling thread pool.API name:
max -
size
The number of active threads allowed in a fixed thread pool.API name:
size -
keepAlive
The thread keep alive time.API name:
keep_alive -
self
- Specified by:
selfin classWithJsonObjectBuilderBase<ThreadPoolRecord.Builder>
-
build
Builds aThreadPoolRecord.- Specified by:
buildin interfaceObjectBuilder<ThreadPoolRecord>- Throws:
NullPointerException- if some of the required fields are null.
-