java.lang.Object
java.lang.Record
software.sava.rpc.json.http.response.PerfSample
public record PerfSample(long slot, long numSlots, long numTransactions, long numNonVoteTransaction, int samplePeriodSecs)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionPerfSample(long slot, long numSlots, long numTransactions, long numNonVoteTransaction, int samplePeriodSecs) Creates an instance of aPerfSamplerecord class. -
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 thenumNonVoteTransactionrecord component.longnumSlots()Returns the value of thenumSlotsrecord component.longReturns the value of thenumTransactionsrecord component.static List<PerfSample> parse(systems.comodal.jsoniter.JsonIterator ji) intReturns the value of thesamplePeriodSecsrecord component.longslot()Returns the value of theslotrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
PerfSample
public PerfSample(long slot, long numSlots, long numTransactions, long numNonVoteTransaction, int samplePeriodSecs) Creates an instance of aPerfSamplerecord class.- Parameters:
slot- the value for theslotrecord componentnumSlots- the value for thenumSlotsrecord componentnumTransactions- the value for thenumTransactionsrecord componentnumNonVoteTransaction- the value for thenumNonVoteTransactionrecord componentsamplePeriodSecs- the value for thesamplePeriodSecsrecord component
-
-
Method Details
-
parse
-
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 '=='. -
slot
public long slot()Returns the value of theslotrecord component.- Returns:
- the value of the
slotrecord component
-
numSlots
public long numSlots()Returns the value of thenumSlotsrecord component.- Returns:
- the value of the
numSlotsrecord component
-
numTransactions
public long numTransactions()Returns the value of thenumTransactionsrecord component.- Returns:
- the value of the
numTransactionsrecord component
-
numNonVoteTransaction
public long numNonVoteTransaction()Returns the value of thenumNonVoteTransactionrecord component.- Returns:
- the value of the
numNonVoteTransactionrecord component
-
samplePeriodSecs
public int samplePeriodSecs()Returns the value of thesamplePeriodSecsrecord component.- Returns:
- the value of the
samplePeriodSecsrecord component
-