|
||||||||||
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,
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. |
java.lang.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, 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 satisfiedMethod 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 java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |