Package org.acemq.workloads.endurance
Record Class ProcessSampler.Usage
java.lang.Object
java.lang.Record
org.acemq.workloads.endurance.ProcessSampler.Usage
- Record Components:
rssKb- resident memory in kB @param fds open descriptors @param threads threads
- Enclosing interface:
ProcessSampler
-
Constructor Summary
ConstructorsConstructorDescriptionUsage(long rssKb, long fds, long threads) Creates an instance of aUsagerecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.longfds()Returns the value of thefdsrecord component.final inthashCode()Returns a hash code value for this object.longrssKb()Returns the value of therssKbrecord component.longthreads()Returns the value of thethreadsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Usage
public Usage(long rssKb, long fds, long threads) Creates an instance of aUsagerecord class.- Parameters:
rssKb- the value for therssKbrecord componentfds- the value for thefdsrecord componentthreads- the value for thethreadsrecord 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. All components in this record class are compared with '=='. -
rssKb
public long rssKb()Returns the value of therssKbrecord component.- Returns:
- the value of the
rssKbrecord component
-
fds
public long fds()Returns the value of thefdsrecord component.- Returns:
- the value of the
fdsrecord component
-
threads
public long threads()Returns the value of thethreadsrecord component.- Returns:
- the value of the
threadsrecord component
-