public static class DurationFilter
extends java.lang.Object
By default each DurationFilter is initialized using the following
LogManager configuration properties where <filter-name> refers to the
fully qualified class name of the handler. If properties are not defined, or
contain invalid values, then the specified default values are used.
1000)
java.time package is available then
an ISO-8601 duration format of PnDTnHnMn.nS can be used as the value.
The suffixes of "D", "H", "M" and "S" are for days, hours, minutes and
seconds. The suffixes must occur in order. The seconds can be specified with
a fractional component to declare milliseconds. (defaults to PT15M)
For example, the settings to limit MailHandler with a default
capacity to only send a maximum of two email messages every six minutes would
be as follows:
com.sun.mail.util.logging.MailHandler.filter = com.sun.mail.util.logging.DurationFilter
com.sun.mail.util.logging.MailHandler.capacity = 1000
com.sun.mail.util.logging.DurationFilter.records = 2L * 1000L
com.sun.mail.util.logging.DurationFilter.duration = PT6M