java.lang.Object
java.lang.Record
software.sava.rpc.json.http.response.EpochSchedule
public record EpochSchedule(long firstNormalEpoch, long firstNormalSlot, long leaderScheduleSlotOffset, int slotsPerEpoch, boolean warmup)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionEpochSchedule(long firstNormalEpoch, long firstNormalSlot, long leaderScheduleSlotOffset, int slotsPerEpoch, boolean warmup) Creates an instance of aEpochSchedulerecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.longReturns the value of thefirstNormalEpochrecord component.longReturns the value of thefirstNormalSlotrecord component.final inthashCode()Returns a hash code value for this object.longReturns the value of theleaderScheduleSlotOffsetrecord component.static EpochScheduleparse(systems.comodal.jsoniter.JsonIterator ji) intReturns the value of theslotsPerEpochrecord component.final StringtoString()Returns a string representation of this record class.booleanwarmup()Returns the value of thewarmuprecord component.
-
Constructor Details
-
EpochSchedule
public EpochSchedule(long firstNormalEpoch, long firstNormalSlot, long leaderScheduleSlotOffset, int slotsPerEpoch, boolean warmup) Creates an instance of aEpochSchedulerecord class.- Parameters:
firstNormalEpoch- the value for thefirstNormalEpochrecord componentfirstNormalSlot- the value for thefirstNormalSlotrecord componentleaderScheduleSlotOffset- the value for theleaderScheduleSlotOffsetrecord componentslotsPerEpoch- the value for theslotsPerEpochrecord componentwarmup- the value for thewarmuprecord 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 '=='. -
firstNormalEpoch
public long firstNormalEpoch()Returns the value of thefirstNormalEpochrecord component.- Returns:
- the value of the
firstNormalEpochrecord component
-
firstNormalSlot
public long firstNormalSlot()Returns the value of thefirstNormalSlotrecord component.- Returns:
- the value of the
firstNormalSlotrecord component
-
leaderScheduleSlotOffset
public long leaderScheduleSlotOffset()Returns the value of theleaderScheduleSlotOffsetrecord component.- Returns:
- the value of the
leaderScheduleSlotOffsetrecord component
-
slotsPerEpoch
public int slotsPerEpoch()Returns the value of theslotsPerEpochrecord component.- Returns:
- the value of the
slotsPerEpochrecord component
-
warmup
public boolean warmup()Returns the value of thewarmuprecord component.- Returns:
- the value of the
warmuprecord component
-