Class Pool.Builder
java.lang.Object
org.opensearch.client.util.ObjectBuilderBase
org.opensearch.client.opensearch.nodes.stats.Pool.Builder
- All Implemented Interfaces:
CopyableBuilder<Pool.Builder,,Pool> MutableBuilder<Pool.Builder,,Pool> ObjectBuilder<Pool>
- Enclosing class:
Pool
public static class Pool.Builder
extends ObjectBuilderBase
implements CopyableBuilder<Pool.Builder,Pool>
Builder for
Pool.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aPool.copy()Create a new builderCopyableBuilderthat is a copy of this one.final Pool.BuilderMost recent GC cycle stats for a particular memory pool.final Pool.BuilderlastGcStats(LastGcStats value) Most recent GC cycle stats for a particular memory pool.final Pool.BuilderMaximum amount of memory available for use by the heap.final Pool.BuildermaxInBytes(Long value) Maximum amount of memory, in bytes, available for use by the heap.final Pool.BuilderLargest amount of memory historically used by the heap.final Pool.BuilderpeakMaxInBytes(Long value) Largest amount of memory, in bytes, historically used by the heap.final Pool.BuilderLargest amount of memory historically used by the heap.final Pool.BuilderpeakUsedInBytes(Long value) Largest amount of memory, in bytes, historically used by the heap.final Pool.BuilderMemory used by the heap.final Pool.BuilderusedInBytes(Long value) Memory, in bytes, used by the heap.Methods inherited from class org.opensearch.client.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _listCopy, _mapCopy, _mapPut, _mapPutAllMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opensearch.client.util.MutableBuilder
applyMutation
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
copy
Description copied from interface:CopyableBuilderCreate a new builderCopyableBuilderthat is a copy of this one.- Specified by:
copyin interfaceCopyableBuilder<Pool.Builder,Pool> - Returns:
- a new builder instance.
-
lastGcStats
Most recent GC cycle stats for a particular memory pool.API name:
last_gc_stats -
lastGcStats
@Nonnull public final Pool.Builder lastGcStats(Function<LastGcStats.Builder, ObjectBuilder<LastGcStats>> fn) Most recent GC cycle stats for a particular memory pool.API name:
last_gc_stats -
max
Maximum amount of memory available for use by the heap.API name:
max -
maxInBytes
Maximum amount of memory, in bytes, available for use by the heap.API name:
max_in_bytes -
peakMax
Largest amount of memory historically used by the heap.API name:
peak_max -
peakMaxInBytes
Largest amount of memory, in bytes, historically used by the heap.API name:
peak_max_in_bytes -
peakUsed
Largest amount of memory historically used by the heap.API name:
peak_used -
peakUsedInBytes
Largest amount of memory, in bytes, historically used by the heap.API name:
peak_used_in_bytes -
used
Memory used by the heap.API name:
used -
usedInBytes
Memory, in bytes, used by the heap.API name:
used_in_bytes -
build
Builds aPool.- Specified by:
buildin interfaceObjectBuilder<Pool>- Throws:
NullPointerException- if some of the required fields are null.
-