Record Class SmsOutboxProperties
java.lang.Object
java.lang.Record
com.irurueta.authserver.authorization.infrastructure.sms.SmsOutboxProperties
- Record Components:
capacity- maximum number of messages kept; the oldest is evicted first.
@ConfigurationProperties(prefix="authserver.sms.outbox")
public record SmsOutboxProperties(int capacity)
extends Record
Settings of the
SmsOutbox.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final intThe field for thecapacityrecord component.static final intCapacity used when none is configured. -
Constructor Summary
ConstructorsConstructorDescriptionSmsOutboxProperties(int capacity) Applies the default capacity when the configured one is not positive. -
Method Summary
Modifier and TypeMethodDescriptionintcapacity()Returns the value of thecapacityrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
capacity
private final int capacityThe field for thecapacityrecord component. -
DEFAULT_CAPACITY
public static final int DEFAULT_CAPACITYCapacity used when none is configured.- See Also:
-
-
Constructor Details
-
SmsOutboxProperties
public SmsOutboxProperties(int capacity) Applies the default capacity when the configured one is not positive.- Parameters:
capacity- maximum number of messages kept, or zero forDEFAULT_CAPACITY.
-
-
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 '=='. -
capacity
public int capacity()Returns the value of thecapacityrecord component.- Returns:
- the value of the
capacityrecord component
-