public class CounterBasedEvaluator extends ContextAwareBase implements EventEvaluator<Object>
By default, the limit is 1024.
context
Constructor and Description |
---|
CounterBasedEvaluator() |
Modifier and Type | Method and Description |
---|---|
boolean |
evaluate(Object event) |
int |
getLimit() |
String |
getName() |
boolean |
isStarted() |
void |
setLimit(int limit) |
void |
setName(String name) |
void |
start() |
void |
stop() |
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, getDeclaredOrigin, getStatusManager, setContext
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, setContext
public CounterBasedEvaluator()
public boolean evaluate(Object event) throws NullPointerException, EvaluationException
evaluate
in interface EventEvaluator<Object>
NullPointerException
EvaluationException
public String getName()
getName
in interface EventEvaluator<Object>
public void setName(String name)
setName
in interface EventEvaluator<Object>
public int getLimit()
public void setLimit(int limit)
Copyright © 2005–2018 QOS.ch. All rights reserved.