Class OutputConditionPolledExpression
java.lang.Object
com.espertech.esper.common.internal.epl.output.polled.OutputConditionPolledExpression
- All Implemented Interfaces:
OutputConditionPolled
Output condition for output rate limiting that handles when-then expressions for controlling output.
-
Field Summary
Fields inherited from interface com.espertech.esper.common.internal.epl.output.polled.OutputConditionPolled
EPTYPE
-
Constructor Summary
ConstructorDescriptionOutputConditionPolledExpression
(OutputConditionPolledExpressionFactory factory, OutputConditionPolledExpressionState state, ExprEvaluatorContext exprEvaluatorContext, ObjectArrayEventBean builtinProperties) -
Method Summary
Modifier and TypeMethodDescriptiongetState()
boolean
updateOutputCondition
(int newEventsCount, int oldEventsCount) Update the output condition.
-
Constructor Details
-
OutputConditionPolledExpression
public OutputConditionPolledExpression(OutputConditionPolledExpressionFactory factory, OutputConditionPolledExpressionState state, ExprEvaluatorContext exprEvaluatorContext, ObjectArrayEventBean builtinProperties)
-
-
Method Details
-
getState
- Specified by:
getState
in interfaceOutputConditionPolled
-
updateOutputCondition
public boolean updateOutputCondition(int newEventsCount, int oldEventsCount) Description copied from interface:OutputConditionPolled
Update the output condition.- Specified by:
updateOutputCondition
in interfaceOutputConditionPolled
- Parameters:
newEventsCount
- - number of new events incomingoldEventsCount
- - number of old events incoming- Returns:
- indicator whether to output
-