Record Class ManagedResourcePolicy.HostHeapProfile
java.lang.Object
java.lang.Record
org.j7m.middleware.application.components.ManagedResourcePolicy.HostHeapProfile
- Record Components:
maximumHeapBytes- positive host heap ceiling in bytes; not a per-app or native memory quota
- Enclosing class:
ManagedResourcePolicy
Whole-host JVM heap ceiling, verified against Runtime.maxMemory.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.longReturns the value of themaximumHeapBytesrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
HostHeapProfile
public HostHeapProfile(long maximumHeapBytes) Rejects invalid ceilings.- Throws:
IllegalArgumentException- if the ceiling is not positive
-
-
Method Details
-
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. All components in this record class are compared with thecomparemethod from their corresponding wrapper classes. -
maximumHeapBytes
public long maximumHeapBytes()Returns the value of themaximumHeapBytesrecord component.- Returns:
- the value of the
maximumHeapBytesrecord component
-