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 Summary
ConstructorsConstructorDescriptionMailpitRuntimeStats(long uptime, long memory, long messagesDeleted, long smtpAccepted, long smtpAcceptedSize, long smtpRejected, long smtpIgnored) Creates an instance of aMailpitRuntimeStatsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.longmemory()Returns the value of thememoryrecord component.longReturns the value of themessagesDeletedrecord component.longReturns the value of thesmtpAcceptedrecord component.longReturns the value of thesmtpAcceptedSizerecord component.longReturns the value of thesmtpIgnoredrecord component.longReturns the value of thesmtpRejectedrecord component.final StringtoString()Returns a string representation of this record class.longuptime()Returns the value of theuptimerecord component.
-
Constructor Details
-
MailpitRuntimeStats
public MailpitRuntimeStats(long uptime, long memory, long messagesDeleted, long smtpAccepted, long smtpAcceptedSize, long smtpRejected, long smtpIgnored) Creates an instance of aMailpitRuntimeStatsrecord class.- Parameters:
uptime- the value for theuptimerecord componentmemory- the value for thememoryrecord componentmessagesDeleted- the value for themessagesDeletedrecord componentsmtpAccepted- the value for thesmtpAcceptedrecord componentsmtpAcceptedSize- the value for thesmtpAcceptedSizerecord componentsmtpRejected- the value for thesmtpRejectedrecord componentsmtpIgnored- the value for thesmtpIgnoredrecord component
-
-
Method Details
-
toString
-
hashCode
-
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 thecomparemethod from their corresponding wrapper classes. -
uptime
-
memory
-
messagesDeleted
public long messagesDeleted()Returns the value of themessagesDeletedrecord component.- Returns:
- the value of the
messagesDeletedrecord component
-
smtpAccepted
public long smtpAccepted()Returns the value of thesmtpAcceptedrecord component.- Returns:
- the value of the
smtpAcceptedrecord component
-
smtpAcceptedSize
public long smtpAcceptedSize()Returns the value of thesmtpAcceptedSizerecord component.- Returns:
- the value of the
smtpAcceptedSizerecord component
-
smtpRejected
public long smtpRejected()Returns the value of thesmtpRejectedrecord component.- Returns:
- the value of the
smtpRejectedrecord component
-
smtpIgnored
public long smtpIgnored()Returns the value of thesmtpIgnoredrecord component.- Returns:
- the value of the
smtpIgnoredrecord component
-