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
ConstructorsModifierConstructorDescriptionprotectedThreadEntry(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 aThreadEntryrecord class. -
Method Summary
Modifier and TypeMethodDescriptiondoubleReturns the value of theblock_timerecord component.longblocks()Returns the value of theblocksrecord component.doublecpu_time()Returns the value of thecpu_timerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.protected Stringstate()Returns the value of thestaterecord component.Returns the value of thethread_namerecord component.toString()Returns a string representation of this record class.doubleReturns the value of theuser_timerecord component.doubleReturns the value of thewait_timerecord component.longwaits()Returns the value of thewaitsrecord component.
-
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 aThreadEntryrecord class.- Parameters:
state- the value for thestaterecord componentthread_name- the value for thethread_namerecord componentblocks- the value for theblocksrecord componentwaits- the value for thewaitsrecord componentblock_time- the value for theblock_timerecord componentwait_time- the value for thewait_timerecord componentcpu_time- the value for thecpu_timerecord componentuser_time- the value for theuser_timerecord component
-
-
Method Details
-
toString
-
print
-
hashCode
-
equals
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 withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
state
Returns the value of thestaterecord component.- Returns:
- the value of the
staterecord component
-
thread_name
Returns the value of thethread_namerecord component.- Returns:
- the value of the
thread_namerecord component
-
blocks
public long blocks()Returns the value of theblocksrecord component.- Returns:
- the value of the
blocksrecord component
-
waits
public long waits()Returns the value of thewaitsrecord component.- Returns:
- the value of the
waitsrecord component
-
block_time
public double block_time()Returns the value of theblock_timerecord component.- Returns:
- the value of the
block_timerecord component
-
wait_time
public double wait_time()Returns the value of thewait_timerecord component.- Returns:
- the value of the
wait_timerecord component
-
cpu_time
public double cpu_time()Returns the value of thecpu_timerecord component.- Returns:
- the value of the
cpu_timerecord component
-
user_time
public double user_time()Returns the value of theuser_timerecord component.- Returns:
- the value of the
user_timerecord component
-