java.lang.Object
java.lang.Record
software.sava.rpc.json.http.ws.Timings
public record Timings(long reConnectDelay, long pingDelay, long subscriptionAndPingCheckDelay)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionTimings(long reConnectDelay, long pingDelay, long subscriptionAndPingCheckDelay) Creates an instance of aTimingsrecord 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 thepingDelayrecord component.longReturns the value of thereConnectDelayrecord component.longReturns the value of thesubscriptionAndPingCheckDelayrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Timings
public Timings(long reConnectDelay, long pingDelay, long subscriptionAndPingCheckDelay) Creates an instance of aTimingsrecord class.- Parameters:
reConnectDelay- the value for thereConnectDelayrecord componentpingDelay- the value for thepingDelayrecord componentsubscriptionAndPingCheckDelay- the value for thesubscriptionAndPingCheckDelayrecord 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 '=='. -
reConnectDelay
public long reConnectDelay()Returns the value of thereConnectDelayrecord component.- Returns:
- the value of the
reConnectDelayrecord component
-
pingDelay
public long pingDelay()Returns the value of thepingDelayrecord component.- Returns:
- the value of the
pingDelayrecord component
-
subscriptionAndPingCheckDelay
public long subscriptionAndPingCheckDelay()Returns the value of thesubscriptionAndPingCheckDelayrecord component.- Returns:
- the value of the
subscriptionAndPingCheckDelayrecord component
-