Class OutputConditionPolledCount
java.lang.Object
com.espertech.esper.common.internal.epl.output.polled.OutputConditionPolledCount
- All Implemented Interfaces:
OutputConditionPolled
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 interface com.espertech.esper.common.internal.epl.output.polled.OutputConditionPolled
EPTYPE
-
Constructor Summary
ConstructorDescriptionOutputConditionPolledCount
(OutputConditionPolledCountState state, VariableReader optionalVariableReader) -
Method Summary
Modifier and TypeMethodDescriptiongetState()
final boolean
updateOutputCondition
(int newDataCount, int oldDataCount) Update the output condition.
-
Constructor Details
-
OutputConditionPolledCount
public OutputConditionPolledCount(OutputConditionPolledCountState state, VariableReader optionalVariableReader)
-
-
Method Details
-
getState
- Specified by:
getState
in interfaceOutputConditionPolled
-
updateOutputCondition
public final boolean updateOutputCondition(int newDataCount, int oldDataCount) Description copied from interface:OutputConditionPolled
Update the output condition.- Specified by:
updateOutputCondition
in interfaceOutputConditionPolled
- Parameters:
newDataCount
- - number of new events incomingoldDataCount
- - number of old events incoming- Returns:
- indicator whether to output
-