Record Class JChannelProbeHandler.ThreadEntry

java.lang.Object
java.lang.Record
org.jgroups.JChannelProbeHandler.ThreadEntry
Enclosing class:
JChannelProbeHandler

protected static record JChannelProbeHandler.ThreadEntry(Thread.State state, String thread_name, long blocks, long waits, double block_time, double wait_time, double cpu_time, double user_time) extends Record
Since:
4.0
Author:
Bela Ban
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    ThreadEntry(Thread.State state, String thread_name, long blocks, long waits, double block_time, double wait_time, double cpu_time, double user_time)
    Creates an instance of a ThreadEntry record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    double
    Returns the value of the block_time record component.
    long
    Returns the value of the blocks record component.
    double
    Returns the value of the cpu_time record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    final int
    Returns a hash code value for this object.
    protected String
    print(String format)
     
    Returns the value of the state record component.
    Returns the value of the thread_name record component.
    Returns a string representation of this record class.
    double
    Returns the value of the user_time record component.
    double
    Returns the value of the wait_time record component.
    long
    Returns the value of the waits record component.

    Methods inherited from class Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • ThreadEntry

      protected ThreadEntry(Thread.State state, String thread_name, long blocks, long waits, double block_time, double wait_time, double cpu_time, double user_time)
      Creates an instance of a ThreadEntry record class.
      Parameters:
      state - the value for the state record component
      thread_name - the value for the thread_name record component
      blocks - the value for the blocks record component
      waits - the value for the waits record component
      block_time - the value for the block_time record component
      wait_time - the value for the wait_time record component
      cpu_time - the value for the cpu_time record component
      user_time - the value for the user_time record component
  • Method Details

    • toString

      public String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • print

      protected String print(String format)
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with the compare method from their corresponding wrapper classes.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • state

      public Thread.State state()
      Returns the value of the state record component.
      Returns:
      the value of the state record component
    • thread_name

      public String thread_name()
      Returns the value of the thread_name record component.
      Returns:
      the value of the thread_name record component
    • blocks

      public long blocks()
      Returns the value of the blocks record component.
      Returns:
      the value of the blocks record component
    • waits

      public long waits()
      Returns the value of the waits record component.
      Returns:
      the value of the waits record component
    • block_time

      public double block_time()
      Returns the value of the block_time record component.
      Returns:
      the value of the block_time record component
    • wait_time

      public double wait_time()
      Returns the value of the wait_time record component.
      Returns:
      the value of the wait_time record component
    • cpu_time

      public double cpu_time()
      Returns the value of the cpu_time record component.
      Returns:
      the value of the cpu_time record component
    • user_time

      public double user_time()
      Returns the value of the user_time record component.
      Returns:
      the value of the user_time record component