Record Class MailpitRuntimeStats

java.lang.Object
java.lang.Record
io.micronaut.email.mailpit.client.model.MailpitRuntimeStats
Record Components:
uptime - Server uptime in seconds.
memory - Current memory usage in bytes.
messagesDeleted - Runtime deleted message count.
smtpAccepted - Accepted SMTP message count.
smtpAcceptedSize - Accepted SMTP message size in bytes.
smtpRejected - Rejected SMTP message count.
smtpIgnored - Ignored SMTP message count.

public record MailpitRuntimeStats(long uptime, long memory, long messagesDeleted, long smtpAccepted, long smtpAcceptedSize, long smtpRejected, long smtpIgnored) extends Record
Mailpit runtime statistics.
Since:
3.1.0
  • Constructor Details

    • MailpitRuntimeStats

      public MailpitRuntimeStats(long uptime, long memory, long messagesDeleted, long smtpAccepted, long smtpAcceptedSize, long smtpRejected, long smtpIgnored)
      Creates an instance of a MailpitRuntimeStats record class.
      Parameters:
      uptime - the value for the uptime record component
      memory - the value for the memory record component
      messagesDeleted - the value for the messagesDeleted record component
      smtpAccepted - the value for the smtpAccepted record component
      smtpAcceptedSize - the value for the smtpAcceptedSize record component
      smtpRejected - the value for the smtpRejected record component
      smtpIgnored - the value for the smtpIgnored 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 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.
    • uptime

      public long uptime()
      Returns the value of the uptime record component.
      Returns:
      the value of the uptime record component
    • memory

      public long memory()
      Returns the value of the memory record component.
      Returns:
      the value of the memory record component
    • messagesDeleted

      public long messagesDeleted()
      Returns the value of the messagesDeleted record component.
      Returns:
      the value of the messagesDeleted record component
    • smtpAccepted

      public long smtpAccepted()
      Returns the value of the smtpAccepted record component.
      Returns:
      the value of the smtpAccepted record component
    • smtpAcceptedSize

      public long smtpAcceptedSize()
      Returns the value of the smtpAcceptedSize record component.
      Returns:
      the value of the smtpAcceptedSize record component
    • smtpRejected

      public long smtpRejected()
      Returns the value of the smtpRejected record component.
      Returns:
      the value of the smtpRejected record component
    • smtpIgnored

      public long smtpIgnored()
      Returns the value of the smtpIgnored record component.
      Returns:
      the value of the smtpIgnored record component