Class GarbageCollectorTotal.Builder
java.lang.Object
org.opensearch.client.util.ObjectBuilderBase
org.opensearch.client.opensearch.nodes.stats.GarbageCollectorTotal.Builder
- All Implemented Interfaces:
CopyableBuilder<GarbageCollectorTotal.Builder,,GarbageCollectorTotal> MutableBuilder<GarbageCollectorTotal.Builder,,GarbageCollectorTotal> ObjectBuilder<GarbageCollectorTotal>
- Enclosing class:
GarbageCollectorTotal
public static class GarbageCollectorTotal.Builder
extends ObjectBuilderBase
implements CopyableBuilder<GarbageCollectorTotal.Builder,GarbageCollectorTotal>
Builder for
GarbageCollectorTotal.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aGarbageCollectorTotal.collectionCount(Long value) Total number of JVM garbage collectors that collect objects.Total time spent by JVM collecting objects.collectionTime(Time value) Total time spent by JVM collecting objects.collectionTimeInMillis(Long value) Total time, in milliseconds, spent by JVM collecting objects.copy()Create a new builderCopyableBuilderthat is a copy of this one.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<GarbageCollectorTotal.Builder,GarbageCollectorTotal> - Returns:
- a new builder instance.
-
collectionCount
Total number of JVM garbage collectors that collect objects.API name:
collection_count -
collectionTime
Total time spent by JVM collecting objects.API name:
collection_time -
collectionTime
@Nonnull public final GarbageCollectorTotal.Builder collectionTime(Function<Time.Builder, ObjectBuilder<Time>> fn) Total time spent by JVM collecting objects.API name:
collection_time -
collectionTimeInMillis
Total time, in milliseconds, spent by JVM collecting objects.API name:
collection_time_in_millis -
build
Builds aGarbageCollectorTotal.- Specified by:
buildin interfaceObjectBuilder<GarbageCollectorTotal>- Throws:
NullPointerException- if some of the required fields are null.
-