Class ThreadPoolRecord.Builder

All Implemented Interfaces:
Enclosing class:

public static class ThreadPoolRecord.Builder
extends ObjectBuilderBase
implements ObjectBuilder<ThreadPoolRecord>
Builder for ThreadPoolRecord.
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • nodeName

      public final ThreadPoolRecord.Builder nodeName​(@Nullable java.lang.String value)
      node name

      API name: node_name

    • nodeId

      public final ThreadPoolRecord.Builder nodeId​(@Nullable java.lang.String value)
      persistent node id

      API name: node_id

    • ephemeralNodeId

      public final ThreadPoolRecord.Builder ephemeralNodeId​(@Nullable java.lang.String value)
      ephemeral node id

      API name: ephemeral_node_id

    • pid

      public final ThreadPoolRecord.Builder pid​(@Nullable java.lang.String value)
      process id

      API name: pid

    • host

      public final ThreadPoolRecord.Builder host​(@Nullable java.lang.String value)
      host name

      API name: host

    • ip

      public final ThreadPoolRecord.Builder ip​(@Nullable java.lang.String value)
      ip address

      API name: ip

    • port

      public final ThreadPoolRecord.Builder port​(@Nullable java.lang.String value)
      bound transport port

      API name: port

    • name

      public final ThreadPoolRecord.Builder name​(@Nullable java.lang.String value)
      thread pool name

      API name: name

    • type

      public final ThreadPoolRecord.Builder type​(@Nullable java.lang.String value)
      thread pool type

      API name: type

    • active

      public final ThreadPoolRecord.Builder active​(@Nullable java.lang.String value)
      number of active threads

      API name: active

    • poolSize

      public final ThreadPoolRecord.Builder poolSize​(@Nullable java.lang.String value)
      number of threads

      API name: pool_size

    • queue

      public final ThreadPoolRecord.Builder queue​(@Nullable java.lang.String value)
      number of tasks currently in queue

      API name: queue

    • queueSize

      public final ThreadPoolRecord.Builder queueSize​(@Nullable java.lang.String value)
      maximum number of tasks permitted in queue

      API name: queue_size

    • rejected

      public final ThreadPoolRecord.Builder rejected​(@Nullable java.lang.String value)
      number of rejected tasks

      API name: rejected

    • largest

      public final ThreadPoolRecord.Builder largest​(@Nullable java.lang.String value)
      highest number of seen active threads

      API name: largest

    • completed

      public final ThreadPoolRecord.Builder completed​(@Nullable java.lang.String value)
      number of completed tasks

      API name: completed

    • core

      public final ThreadPoolRecord.Builder core​(@Nullable java.lang.String value)
      core number of threads in a scaling thread pool

      API name: core

    • max

      public final ThreadPoolRecord.Builder max​(@Nullable java.lang.String value)
      maximum number of threads in a scaling thread pool

      API name: max

    • size

      public final ThreadPoolRecord.Builder size​(@Nullable java.lang.String value)
      number of threads in a fixed thread pool

      API name: size

    • keepAlive

      public final ThreadPoolRecord.Builder keepAlive​(@Nullable java.lang.String value)
      thread keep alive time

      API name: keep_alive

    • build

      public ThreadPoolRecord build()
      Specified by:
      build in interface ObjectBuilder<ThreadPoolRecord>
      java.lang.NullPointerException - if some of the required fields are null.