Record Class HostPasswordRotationStore.LegacyDrainProgress

java.lang.Object
java.lang.Record
ecmwf.common.database.HostPasswordRotationStore.LegacyDrainProgress
All Implemented Interfaces:
Serializable
Enclosing class:
HostPasswordRotationStore

public static record HostPasswordRotationStore.LegacyDrainProgress(int routes, int freshReceipts, int sessions, int unresolvedAdmissions) extends Record implements Serializable
See Also:
  • Constructor Summary

    Constructors
    Constructor
    Description
    LegacyDrainProgress(int routes, int freshReceipts, int sessions, int unresolvedAdmissions)
    Creates an instance of a LegacyDrainProgress record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    final boolean
    Indicates whether some other object is "equal to" this one.
    int
    Returns the value of the freshReceipts record component.
    final int
    Returns a hash code value for this object.
    boolean
     
    int
    Returns the value of the routes record component.
    int
    Returns the value of the sessions record component.
    final String
    Returns a string representation of this record class.
    int
    Returns the value of the unresolvedAdmissions record component.

    Methods inherited from class Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • LegacyDrainProgress

      public LegacyDrainProgress(int routes, int freshReceipts, int sessions, int unresolvedAdmissions)
      Creates an instance of a LegacyDrainProgress record class.
      Parameters:
      routes - the value for the routes record component
      freshReceipts - the value for the freshReceipts record component
      sessions - the value for the sessions record component
      unresolvedAdmissions - the value for the unresolvedAdmissions record component
  • Method Details

    • ready

      public boolean ready()
    • 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. All components in this record class 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.
    • routes

      public int routes()
      Returns the value of the routes record component.
      Returns:
      the value of the routes record component
    • freshReceipts

      public int freshReceipts()
      Returns the value of the freshReceipts record component.
      Returns:
      the value of the freshReceipts record component
    • sessions

      public int sessions()
      Returns the value of the sessions record component.
      Returns:
      the value of the sessions record component
    • unresolvedAdmissions

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