Record Class WeatherCollector.Snapshot
java.lang.Object
java.lang.Record
ecmwf.ecpds.master.weather.WeatherCollector.Snapshot
- All Implemented Interfaces:
Serializable
- Enclosing class:
WeatherCollector
public static record WeatherCollector.Snapshot(UUID masterEpoch, long selectionRevision, boolean enabled, long receivedAt, List<WeatherCollector.Summary> summaries, long invalid, long expired, long outOfScope, long capacityRejected, long unsynchronized, int retainedEvents, int retainedConnections, int retainedConnectionReferences)
extends Record
implements Serializable
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionSnapshot(UUID masterEpoch, long selectionRevision, boolean enabled, long receivedAt, List<WeatherCollector.Summary> summaries, long invalid, long expired, long outOfScope, long capacityRejected, long unsynchronized, int retainedEvents, int retainedConnections, int retainedConnectionReferences) Creates an instance of aSnapshotrecord class. -
Method Summary
Modifier and TypeMethodDescriptionlongReturns the value of thecapacityRejectedrecord component.booleanenabled()Returns the value of theenabledrecord component.final booleanIndicates whether some other object is "equal to" this one.longexpired()Returns the value of theexpiredrecord component.final inthashCode()Returns a hash code value for this object.longinvalid()Returns the value of theinvalidrecord component.Returns the value of themasterEpochrecord component.longReturns the value of theoutOfScoperecord component.longReturns the value of thereceivedAtrecord component.intReturns the value of theretainedConnectionReferencesrecord component.intReturns the value of theretainedConnectionsrecord component.intReturns the value of theretainedEventsrecord component.longReturns the value of theselectionRevisionrecord component.Returns the value of thesummariesrecord component.final StringtoString()Returns a string representation of this record class.longReturns the value of theunsynchronizedrecord component.
-
Constructor Details
-
Snapshot
public Snapshot(UUID masterEpoch, long selectionRevision, boolean enabled, long receivedAt, List<WeatherCollector.Summary> summaries, long invalid, long expired, long outOfScope, long capacityRejected, long unsynchronized, int retainedEvents, int retainedConnections, int retainedConnectionReferences) Creates an instance of aSnapshotrecord class.- Parameters:
masterEpoch- the value for themasterEpochrecord componentselectionRevision- the value for theselectionRevisionrecord componentenabled- the value for theenabledrecord componentreceivedAt- the value for thereceivedAtrecord componentsummaries- the value for thesummariesrecord componentinvalid- the value for theinvalidrecord componentexpired- the value for theexpiredrecord componentoutOfScope- the value for theoutOfScoperecord componentcapacityRejected- the value for thecapacityRejectedrecord componentunsynchronized- the value for theunsynchronizedrecord componentretainedEvents- the value for theretainedEventsrecord componentretainedConnections- the value for theretainedConnectionsrecord componentretainedConnectionReferences- the value for theretainedConnectionReferencesrecord 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. -
masterEpoch
Returns the value of themasterEpochrecord component.- Returns:
- the value of the
masterEpochrecord component
-
selectionRevision
public long selectionRevision()Returns the value of theselectionRevisionrecord component.- Returns:
- the value of the
selectionRevisionrecord component
-
enabled
public boolean enabled()Returns the value of theenabledrecord component.- Returns:
- the value of the
enabledrecord component
-
receivedAt
public long receivedAt()Returns the value of thereceivedAtrecord component.- Returns:
- the value of the
receivedAtrecord component
-
summaries
Returns the value of thesummariesrecord component.- Returns:
- the value of the
summariesrecord component
-
invalid
public long invalid()Returns the value of theinvalidrecord component.- Returns:
- the value of the
invalidrecord component
-
expired
public long expired()Returns the value of theexpiredrecord component.- Returns:
- the value of the
expiredrecord component
-
outOfScope
public long outOfScope()Returns the value of theoutOfScoperecord component.- Returns:
- the value of the
outOfScoperecord component
-
capacityRejected
public long capacityRejected()Returns the value of thecapacityRejectedrecord component.- Returns:
- the value of the
capacityRejectedrecord component
-
unsynchronized
public long unsynchronized()Returns the value of theunsynchronizedrecord component.- Returns:
- the value of the
unsynchronizedrecord component
-
retainedEvents
public int retainedEvents()Returns the value of theretainedEventsrecord component.- Returns:
- the value of the
retainedEventsrecord component
-
retainedConnections
public int retainedConnections()Returns the value of theretainedConnectionsrecord component.- Returns:
- the value of the
retainedConnectionsrecord component
-
retainedConnectionReferences
public int retainedConnectionReferences()Returns the value of theretainedConnectionReferencesrecord component.- Returns:
- the value of the
retainedConnectionReferencesrecord component
-