Record Class OttCleanupResult

java.lang.Object
java.lang.Record
com.irurueta.authserver.authorization.application.ott.OttCleanupResult
Record Components:
codes - expired one-time codes.
phoneVerifications - expired pending phone verifications.
ledgerEntries - SMS cost ledger rows older than the retention.
linkTokens - expired magic-link tokens.

public record OttCleanupResult(int codes, int phoneVerifications, int ledgerEntries, int linkTokens) extends Record
Number of rows removed by a cleanup run.
  • Field Details

    • codes

      private final int codes
      The field for the codes record component.
    • phoneVerifications

      private final int phoneVerifications
      The field for the phoneVerifications record component.
    • ledgerEntries

      private final int ledgerEntries
      The field for the ledgerEntries record component.
    • linkTokens

      private final int linkTokens
      The field for the linkTokens record component.
  • Constructor Details

    • OttCleanupResult

      public OttCleanupResult(int codes, int phoneVerifications, int ledgerEntries, int linkTokens)
      Creates an instance of a OttCleanupResult record class.
      Parameters:
      codes - the value for the codes record component
      phoneVerifications - the value for the phoneVerifications record component
      ledgerEntries - the value for the ledgerEntries record component
      linkTokens - the value for the linkTokens 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. All components in this record class are compared with '=='.
      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.
    • codes

      public int codes()
      Returns the value of the codes record component.
      Returns:
      the value of the codes record component
    • phoneVerifications

      public int phoneVerifications()
      Returns the value of the phoneVerifications record component.
      Returns:
      the value of the phoneVerifications record component
    • ledgerEntries

      public int ledgerEntries()
      Returns the value of the ledgerEntries record component.
      Returns:
      the value of the ledgerEntries record component
    • linkTokens

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