Interface Guard
- All Known Implementing Classes:
ExpressionGuard
,TimerWithinGuard
,TimerWithinOrMaxCountGuard
public interface Guard
Guard instances inspect a matched events and makes a determination on whether to let it pass or not.
-
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.
-
Method Details
-
startGuard
void startGuard()Start the guard operation. -
stopGuard
void stopGuard()Called when sub-expression quits, or when the pattern stopped. -
inspect
Returns true if inspection shows that the match events can pass, or false to not pass.- Parameters:
matchEvent
- is the map of matching events- Returns:
- true to pass, false to not pass
-
accept
-