Class ExpressionGuard
java.lang.Object
com.espertech.esper.common.internal.epl.pattern.guard.ExpressionGuard
- All Implemented Interfaces:
Guard
Guard implementation that keeps a timer instance and quits when the timer expired,
and also keeps a count of the number of matches so far, checking both count and timer,
letting all
MatchedEventMap
instances pass until then.-
Constructor Summary
ConstructorDescriptionExpressionGuard
(MatchedEventConvertor convertor, ExprEvaluator expression, Quitable quitable) -
Method Summary
Modifier and TypeMethodDescriptionvoid
accept
(EventGuardVisitor visitor) boolean
inspect
(MatchedEventMap matchEvent) Returns true if inspection shows that the match events can pass, or false to not pass.void
Start the guard operation.void
Called when sub-expression quits, or when the pattern stopped.
-
Constructor Details
-
ExpressionGuard
public ExpressionGuard(MatchedEventConvertor convertor, ExprEvaluator expression, Quitable quitable)
-
-
Method Details
-
startGuard
public void startGuard()Description copied from interface:Guard
Start the guard operation.- Specified by:
startGuard
in interfaceGuard
-
inspect
Description copied from interface:Guard
Returns true if inspection shows that the match events can pass, or false to not pass. -
stopGuard
public void stopGuard()Description copied from interface:Guard
Called when sub-expression quits, or when the pattern stopped. -
accept
-