Class WatcherNodeStats.Builder
java.lang.Object
co.elastic.clients.elasticsearch.watcher.stats.WatcherNodeStats.Builder
- All Implemented Interfaces:
ObjectBuilder<WatcherNodeStats>
- Enclosing class:
- WatcherNodeStats
public static class WatcherNodeStats.Builder extends java.lang.Object implements ObjectBuilder<WatcherNodeStats>
Builder for
WatcherNodeStats.-
Constructor Summary
Constructors Constructor Description Builder() -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
currentWatches
API name:current_watches -
currentWatches
API name:current_watches -
addCurrentWatches
Add a value tocurrentWatches(List), creating the list if needed. 4 -
currentWatches
public WatcherNodeStats.Builder currentWatches(java.util.function.Function<WatchRecordStats.Builder,ObjectBuilder<WatchRecordStats>> fn)SetcurrentWatches(List)to a singleton list. -
addCurrentWatches
public WatcherNodeStats.Builder addCurrentWatches(java.util.function.Function<WatchRecordStats.Builder,ObjectBuilder<WatchRecordStats>> fn)Add a value tocurrentWatches(List), creating the list if needed. 5 -
executionThreadPool
API name:execution_thread_pool -
executionThreadPool
public WatcherNodeStats.Builder executionThreadPool(java.util.function.Function<ExecutionThreadPool.Builder,ObjectBuilder<ExecutionThreadPool>> fn)API name:execution_thread_pool -
queuedWatches
public WatcherNodeStats.Builder queuedWatches(@Nullable java.util.List<WatchRecordQueuedStats> value)API name:queued_watches -
queuedWatches
API name:queued_watches -
addQueuedWatches
Add a value toqueuedWatches(List), creating the list if needed. 4 -
queuedWatches
public WatcherNodeStats.Builder queuedWatches(java.util.function.Function<WatchRecordQueuedStats.Builder,ObjectBuilder<WatchRecordQueuedStats>> fn)SetqueuedWatches(List)to a singleton list. -
addQueuedWatches
public WatcherNodeStats.Builder addQueuedWatches(java.util.function.Function<WatchRecordQueuedStats.Builder,ObjectBuilder<WatchRecordQueuedStats>> fn)Add a value toqueuedWatches(List), creating the list if needed. 5 -
watchCount
API name:watch_count -
watcherState
API name:watcher_state -
nodeId
API name:node_id -
build
Builds aWatcherNodeStats.- Specified by:
buildin interfaceObjectBuilder<WatcherNodeStats>- Throws:
java.lang.NullPointerException- if some of the required fields are null.
-