Record Class ClientSocketStatistics.Snapshot
java.lang.Object
java.lang.Record
ecmwf.common.rmi.ClientSocketStatistics.Snapshot
- Enclosing class:
ClientSocketStatistics
public static record ClientSocketStatistics.Snapshot(List<ClientSocketStatistics.SocketSnapshot> connections, int omitted)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionSnapshot(List<ClientSocketStatistics.SocketSnapshot> connections, int omitted) Creates an instance of aSnapshotrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theconnectionsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intomitted()Returns the value of theomittedrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Snapshot
Creates an instance of aSnapshotrecord class.- Parameters:
connections- the value for theconnectionsrecord componentomitted- the value for theomittedrecord 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. -
connections
Returns the value of theconnectionsrecord component.- Returns:
- the value of the
connectionsrecord component
-
omitted
public int omitted()Returns the value of theomittedrecord component.- Returns:
- the value of the
omittedrecord component
-