Record Class JvmMemoryPressure.Reading
java.lang.Object
java.lang.Record
com.kingsrook.qqq.backend.core.health.JvmMemoryPressure.Reading
- Enclosing class:
JvmMemoryPressure
public static record JvmMemoryPressure.Reading(Instant at, Double heapAfterGcPercent, double gcTimePercent, boolean pressured, Instant pressuredSince)
extends Record
One evaluation.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionat()Returns the value of theatrecord component.final booleanIndicates whether some other object is "equal to" this one.doubleReturns the value of thegcTimePercentrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of theheapAfterGcPercentrecord component.booleanReturns the value of thepressuredrecord component.How long pressure has lasted at this reading; zero when not pressured.Returns the value of thepressuredSincerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Reading
public Reading(Instant at, Double heapAfterGcPercent, double gcTimePercent, boolean pressured, Instant pressuredSince) Creates an instance of aReadingrecord class.- Parameters:
at- the value for theatrecord componentheapAfterGcPercent- the value for theheapAfterGcPercentrecord componentgcTimePercent- the value for thegcTimePercentrecord componentpressured- the value for thepressuredrecord componentpressuredSince- the value for thepressuredSincerecord component
-
-
Method Details
-
pressuredFor
How long pressure has lasted at this reading; zero when not pressured. -
toString
-
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. -
at
Returns the value of theatrecord component.- Returns:
- the value of the
atrecord component
-
heapAfterGcPercent
Returns the value of theheapAfterGcPercentrecord component.- Returns:
- the value of the
heapAfterGcPercentrecord component
-
gcTimePercent
public double gcTimePercent()Returns the value of thegcTimePercentrecord component.- Returns:
- the value of the
gcTimePercentrecord component
-
pressured
public boolean pressured()Returns the value of thepressuredrecord component.- Returns:
- the value of the
pressuredrecord component
-
pressuredSince
Returns the value of thepressuredSincerecord component.- Returns:
- the value of the
pressuredSincerecord component
-