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 Details

    • Builder

      public Builder()
  • Method Details

    • copy

      @Nonnull public Pool.Builder copy()
      Description copied from interface: CopyableBuilder
      Create a new builder CopyableBuilder that is a copy of this one.
      Specified by:
      copy in interface CopyableBuilder<Pool.Builder,Pool>
      Returns:
      a new builder instance.
    • lastGcStats

      @Nonnull public final Pool.Builder lastGcStats(@Nullable LastGcStats value)
      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

      @Nonnull public final Pool.Builder max(@Nullable String value)
      Maximum amount of memory available for use by the heap.

      API name: max

    • maxInBytes

      @Nonnull public final Pool.Builder maxInBytes(@Nullable Long value)
      Maximum amount of memory, in bytes, available for use by the heap.

      API name: max_in_bytes

    • peakMax

      @Nonnull public final Pool.Builder peakMax(@Nullable String value)
      Largest amount of memory historically used by the heap.

      API name: peak_max

    • peakMaxInBytes

      @Nonnull public final Pool.Builder peakMaxInBytes(@Nullable Long value)
      Largest amount of memory, in bytes, historically used by the heap.

      API name: peak_max_in_bytes

    • peakUsed

      @Nonnull public final Pool.Builder peakUsed(@Nullable String value)
      Largest amount of memory historically used by the heap.

      API name: peak_used

    • peakUsedInBytes

      @Nonnull public final Pool.Builder peakUsedInBytes(@Nullable Long value)
      Largest amount of memory, in bytes, historically used by the heap.

      API name: peak_used_in_bytes

    • used

      @Nonnull public final Pool.Builder used(@Nullable String value)
      Memory used by the heap.

      API name: used

    • usedInBytes

      @Nonnull public final Pool.Builder usedInBytes(@Nullable Long value)
      Memory, in bytes, used by the heap.

      API name: used_in_bytes

    • build

      @Nonnull public Pool build()
      Builds a Pool.
      Specified by:
      build in interface ObjectBuilder<Pool>
      Throws:
      NullPointerException - if some of the required fields are null.