checks whether an logging event
is allowed to be written to log or not.
checks a single log event
logObject the log event to check
- true, if it's allowed to be logged
checks multiple log events. Please don't use this to iterate over all log events, for this usecase you can use
, which is called for each single event.
logObjects the log events to check
- true, if all loge events are allowed to be logged
Default implementation that allows everything.
A special barrier that allows a maximum number of events in a time frame.
maxSize the max number of messages that can be sent during time frame.
period defines the time frame period
timeUnit defines the time frame time unit
- new timer event handler, default implementation delegates work to
shutdown executor service
this method is triggered after some period of time. The default implementation resets the counter.