Record Class ClientSocketStatistics.SocketSnapshot
java.lang.Object
java.lang.Record
ecmwf.common.rmi.ClientSocketStatistics.SocketSnapshot
- Enclosing class:
ClientSocketStatistics
-
Constructor Summary
ConstructorsConstructorDescriptionSocketSnapshot(UUID connectionId, long startTime, long endTime, String statistics) Creates an instance of aSocketSnapshotrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theconnectionIdrecord component.longendTime()Returns the value of theendTimerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.longReturns the value of thestartTimerecord component.Returns the value of thestatisticsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SocketSnapshot
Creates an instance of aSocketSnapshotrecord class.- Parameters:
connectionId- the value for theconnectionIdrecord componentstartTime- the value for thestartTimerecord componentendTime- the value for theendTimerecord componentstatistics- the value for thestatisticsrecord component
-
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
connectionId
Returns the value of theconnectionIdrecord component.- Returns:
- the value of the
connectionIdrecord component
-
startTime
public long startTime()Returns the value of thestartTimerecord component.- Returns:
- the value of the
startTimerecord component
-
endTime
public long endTime()Returns the value of theendTimerecord component.- Returns:
- the value of the
endTimerecord component
-
statistics
Returns the value of thestatisticsrecord component.- Returns:
- the value of the
statisticsrecord component
-