ch.qos.logback.classic.net
Class CounterBasedEvaluator
java.lang.Object
ch.qos.logback.core.spi.ContextAwareBase
ch.qos.logback.classic.net.CounterBasedEvaluator
- All Implemented Interfaces:
- EventEvaluator, ContextAware, LifeCycle
public class CounterBasedEvaluator
- extends ContextAwareBase
- implements EventEvaluator
A simple EventEvaluator implementation that triggers email transmission after
a given number of events occur, regardless of event level.
By default, the limit is 1024.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CounterBasedEvaluator
public CounterBasedEvaluator()
evaluate
public boolean evaluate(Object event)
throws NullPointerException,
EvaluationException
- Specified by:
evaluate
in interface EventEvaluator
- Throws:
NullPointerException
EvaluationException
getName
public String getName()
- Specified by:
getName
in interface EventEvaluator
setName
public void setName(String name)
- Specified by:
setName
in interface EventEvaluator
isStarted
public boolean isStarted()
- Specified by:
isStarted
in interface LifeCycle
start
public void start()
- Specified by:
start
in interface LifeCycle
stop
public void stop()
- Specified by:
stop
in interface LifeCycle
getLimit
public int getLimit()
setLimit
public void setLimit(int limit)
Copyright © 2005-2009 QOS.ch. All Rights Reserved.