er.javamail
Class ERMailSender.Stats
java.lang.Object
er.javamail.ERMailSender.Stats
- Enclosing class:
- ERMailSender
- public class ERMailSender.Stats
- extends Object
This class is about logging mail event for stats purposes.
More stats to come in the future.
ERMailSender.Stats
public ERMailSender.Stats()
reset
public void reset()
- Resets statistics information
errorCount
public int errorCount()
- Returns:
- the count of error that were encountered during mail seonding process
mailCount
public int mailCount()
- Returns:
- the total count of mails being sent. This number does not take in
accordance the number of errors. To get the actual count of mail sent without
error use 'errorCount - mailCount'.
currentQueueSize
public int currentQueueSize()
- Returns:
- the current queue size. This method is useful for simplistic
load balancing between apps that are supposed to send mails
lastResetTime
public NSTimestamp lastResetTime()
- Returns:
- the timestamp that respresents when the stats object was reset.
usedMemory
public long usedMemory()
formattedUsedMemory
public String formattedUsedMemory()
peakMemoryUsage
public double peakMemoryUsage()
formattedPeakMemoryUsage
public String formattedPeakMemoryUsage()
toString
public String toString()
- Returns:
- a string representation of the Stats object.
Copyright © 2002 – 2004 Project Wonder.