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

    Constructors
    Constructor
    Description
    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 a Snapshot record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    long
    Returns the value of the capacityRejected record component.
    boolean
    Returns the value of the enabled record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    long
    Returns the value of the expired record component.
    final int
    Returns a hash code value for this object.
    long
    Returns the value of the invalid record component.
    Returns the value of the masterEpoch record component.
    long
    Returns the value of the outOfScope record component.
    long
    Returns the value of the receivedAt record component.
    int
    Returns the value of the retainedConnectionReferences record component.
    int
    Returns the value of the retainedConnections record component.
    int
    Returns the value of the retainedEvents record component.
    long
    Returns the value of the selectionRevision record component.
    Returns the value of the summaries record component.
    final String
    Returns a string representation of this record class.
    long
    Returns the value of the unsynchronized record component.

    Methods inherited from class Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • 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 a Snapshot record class.
      Parameters:
      masterEpoch - the value for the masterEpoch record component
      selectionRevision - the value for the selectionRevision record component
      enabled - the value for the enabled record component
      receivedAt - the value for the receivedAt record component
      summaries - the value for the summaries record component
      invalid - the value for the invalid record component
      expired - the value for the expired record component
      outOfScope - the value for the outOfScope record component
      capacityRejected - the value for the capacityRejected record component
      unsynchronized - the value for the unsynchronized record component
      retainedEvents - the value for the retainedEvents record component
      retainedConnections - the value for the retainedConnections record component
      retainedConnectionReferences - the value for the retainedConnectionReferences record component
  • Method Details

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object); primitive components are compared with the compare method from their corresponding wrapper classes.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • masterEpoch

      public UUID masterEpoch()
      Returns the value of the masterEpoch record component.
      Returns:
      the value of the masterEpoch record component
    • selectionRevision

      public long selectionRevision()
      Returns the value of the selectionRevision record component.
      Returns:
      the value of the selectionRevision record component
    • enabled

      public boolean enabled()
      Returns the value of the enabled record component.
      Returns:
      the value of the enabled record component
    • receivedAt

      public long receivedAt()
      Returns the value of the receivedAt record component.
      Returns:
      the value of the receivedAt record component
    • summaries

      public List<WeatherCollector.Summary> summaries()
      Returns the value of the summaries record component.
      Returns:
      the value of the summaries record component
    • invalid

      public long invalid()
      Returns the value of the invalid record component.
      Returns:
      the value of the invalid record component
    • expired

      public long expired()
      Returns the value of the expired record component.
      Returns:
      the value of the expired record component
    • outOfScope

      public long outOfScope()
      Returns the value of the outOfScope record component.
      Returns:
      the value of the outOfScope record component
    • capacityRejected

      public long capacityRejected()
      Returns the value of the capacityRejected record component.
      Returns:
      the value of the capacityRejected record component
    • unsynchronized

      public long unsynchronized()
      Returns the value of the unsynchronized record component.
      Returns:
      the value of the unsynchronized record component
    • retainedEvents

      public int retainedEvents()
      Returns the value of the retainedEvents record component.
      Returns:
      the value of the retainedEvents record component
    • retainedConnections

      public int retainedConnections()
      Returns the value of the retainedConnections record component.
      Returns:
      the value of the retainedConnections record component
    • retainedConnectionReferences

      public int retainedConnectionReferences()
      Returns the value of the retainedConnectionReferences record component.
      Returns:
      the value of the retainedConnectionReferences record component