Class Pool.Builder

All Implemented Interfaces:
WithJson<Pool.Builder>, ObjectBuilder<Pool>
Enclosing class:
Pool

public static class Pool.Builder extends WithJsonObjectBuilderBase<Pool.Builder> implements ObjectBuilder<Pool>
Builder for Pool.
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • usedInBytes

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

      API name: used_in_bytes

    • maxInBytes

      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

    • peakUsedInBytes

      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

    • peakMaxInBytes

      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

    • self

      protected Pool.Builder self()
      Specified by:
      self in class WithJsonObjectBuilderBase<Pool.Builder>
    • build

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