|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.esper.eql.view.OutputConditionCount
public final class OutputConditionCount
Output limit condition that is satisfied when either the total number of new events arrived or the total number of old events arrived is greater than a preset value.
Constructor Summary | |
---|---|
OutputConditionCount(int eventRate,
VariableReader variableReader,
OutputCallback outputCallback)
Constructor. |
Method Summary | |
---|---|
long |
getEventRate()
Returns the event rate. |
int |
getNewEventsCount()
Returns the number of new events. |
int |
getOldEventsCount()
Returns the number of old events. |
String |
toString()
|
void |
updateOutputCondition(int newDataCount,
int oldDataCount)
Update the output condition. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public OutputConditionCount(int eventRate, VariableReader variableReader, OutputCallback outputCallback)
eventRate
- is the number of old or new events that
must arrive in order for the condition to be satisfiedoutputCallback
- is the callback that is made when the conditoin is satisfiedvariableReader
- is for reading the variable value, if a variable was supplied, else nullMethod Detail |
---|
public int getNewEventsCount()
public int getOldEventsCount()
public final long getEventRate()
public final void updateOutputCondition(int newDataCount, int oldDataCount)
OutputCondition
updateOutputCondition
in interface OutputCondition
newDataCount
- - number of new events incomingoldDataCount
- - number of old events incomingpublic final String toString()
toString
in class Object
|
© 2007 EsperTech Inc. All rights reserved. Visit us at espertech.com |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |