Package alpine.common.util
Record Class ExecutorUtil.ExecutorStats
java.lang.Object
java.lang.Record
alpine.common.util.ExecutorUtil.ExecutorStats
- Enclosing class:
- ExecutorUtil
-
Constructor Summary
ConstructorsConstructorDescriptionExecutorStats(boolean terminated, Integer queueSize, Integer activeThreads) Creates an instance of aExecutorStatsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theactiveThreadsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thequeueSizerecord component.booleanReturns the value of theterminatedrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ExecutorStats
Creates an instance of aExecutorStatsrecord class.- Parameters:
terminated- the value for theterminatedrecord componentqueueSize- the value for thequeueSizerecord componentactiveThreads- the value for theactiveThreadsrecord component
-
-
Method Details
-
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. -
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. -
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 '=='. -
terminated
public boolean terminated()Returns the value of theterminatedrecord component.- Returns:
- the value of the
terminatedrecord component
-
queueSize
Returns the value of thequeueSizerecord component.- Returns:
- the value of the
queueSizerecord component
-
activeThreads
Returns the value of theactiveThreadsrecord component.- Returns:
- the value of the
activeThreadsrecord component
-