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 Summary
FieldsModifier and TypeFieldDescriptionprivate final intThe field for thecodesrecord component.private final intThe field for theledgerEntriesrecord component.private final intThe field for thelinkTokensrecord component.private final intThe field for thephoneVerificationsrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionOttCleanupResult(int codes, int phoneVerifications, int ledgerEntries, int linkTokens) Creates an instance of aOttCleanupResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintcodes()Returns the value of thecodesrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intReturns the value of theledgerEntriesrecord component.intReturns the value of thelinkTokensrecord component.intReturns the value of thephoneVerificationsrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
codes
private final int codesThe field for thecodesrecord component. -
phoneVerifications
private final int phoneVerificationsThe field for thephoneVerificationsrecord component. -
ledgerEntries
private final int ledgerEntriesThe field for theledgerEntriesrecord component. -
linkTokens
private final int linkTokensThe field for thelinkTokensrecord component.
-
-
Constructor Details
-
OttCleanupResult
public OttCleanupResult(int codes, int phoneVerifications, int ledgerEntries, int linkTokens) Creates an instance of aOttCleanupResultrecord class.- Parameters:
codes- the value for thecodesrecord componentphoneVerifications- the value for thephoneVerificationsrecord componentledgerEntries- the value for theledgerEntriesrecord componentlinkTokens- the value for thelinkTokensrecord component
-
-
Method Details
-
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. -
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. -
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. All components in this record class are compared with '=='. -
codes
public int codes()Returns the value of thecodesrecord component.- Returns:
- the value of the
codesrecord component
-
phoneVerifications
public int phoneVerifications()Returns the value of thephoneVerificationsrecord component.- Returns:
- the value of the
phoneVerificationsrecord component
-
ledgerEntries
public int ledgerEntries()Returns the value of theledgerEntriesrecord component.- Returns:
- the value of the
ledgerEntriesrecord component
-
linkTokens
public int linkTokens()Returns the value of thelinkTokensrecord component.- Returns:
- the value of the
linkTokensrecord component
-