|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface EventEvaluator<E>
Evaluates whether a given an event matches user-specified criteria.
Implementations are free to evaluate the event as they see fit. In particular, the evaluation results may depend on previous events.
Method Summary | |
---|---|
boolean |
evaluate(E event)
Evaluates whether the event passed as parameter matches some user-specified criteria. |
java.lang.String |
getName()
Evaluators are named entities. |
void |
setName(java.lang.String name)
Evaluators are named entities. |
Methods inherited from interface ch.qos.logback.core.spi.ContextAware |
---|
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, setContext |
Methods inherited from interface ch.qos.logback.core.spi.LifeCycle |
---|
isStarted, start, stop |
Method Detail |
---|
boolean evaluate(E event) throws java.lang.NullPointerException, EvaluationException
The Evaluator
is free to evaluate the event as it pleases. In
particular, the evaluation results may depend on previous events.
event
- The event to evaluate
java.lang.NullPointerException
- can be thrown in presence of null values
EvaluationException
- may be thrown during faulty evaluationjava.lang.String getName()
void setName(java.lang.String name)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |