Class OutputConditionCount
java.lang.Object
com.espertech.esper.common.internal.epl.output.condition.OutputConditionBase
com.espertech.esper.common.internal.epl.output.condition.OutputConditionCount
- All Implemented Interfaces:
OutputCondition
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.
-
Field Summary
Fields inherited from class com.espertech.esper.common.internal.epl.output.condition.OutputConditionBase
outputCallback
Fields inherited from interface com.espertech.esper.common.internal.epl.output.condition.OutputCondition
EPTYPE
-
Constructor Summary
ConstructorDescriptionOutputConditionCount
(OutputCallback outputCallback, long eventRate, VariableReader variableReader) -
Method Summary
Modifier and TypeMethodDescriptionint
Returns the number of new events.int
Returns the number of old events.void
void
final String
toString()
final void
updateOutputCondition
(int newDataCount, int oldDataCount) Update the output condition.
-
Constructor Details
-
OutputConditionCount
public OutputConditionCount(OutputCallback outputCallback, long eventRate, VariableReader variableReader)
-
-
Method Details
-
getNewEventsCount
public int getNewEventsCount()Returns the number of new events.- Returns:
- number of new events
-
getOldEventsCount
public int getOldEventsCount()Returns the number of old events.- Returns:
- number of old events
-
updateOutputCondition
public final void updateOutputCondition(int newDataCount, int oldDataCount) Description copied from interface:OutputCondition
Update the output condition.- Specified by:
updateOutputCondition
in interfaceOutputCondition
- Parameters:
newDataCount
- - number of new events incomingoldDataCount
- - number of old events incoming
-
toString
-
terminated
public void terminated()- Specified by:
terminated
in interfaceOutputCondition
- Overrides:
terminated
in classOutputConditionBase
-
stopOutputCondition
public void stopOutputCondition()- Specified by:
stopOutputCondition
in interfaceOutputCondition
-