com.espertech.esper.pattern.guard
Interface Guard

All Known Implementing Classes:
ExpressionGuard, GuardSupport, 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
 void accept(EventGuardVisitor visitor)
           
 boolean inspect(MatchedEventMap matchEvent)
          Returns true if inspection shows that the match events can pass, or false to not pass.
 void startGuard()
          Start the guard operation.
 void stopGuard()
          Called when sub-expression quits, or when the pattern stopped.
 

Method Detail

startGuard

void startGuard()
Start the guard operation.


stopGuard

void stopGuard()
Called when sub-expression quits, or when the pattern stopped.


inspect

boolean inspect(MatchedEventMap matchEvent)
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

void accept(EventGuardVisitor visitor)

© 2006-2016 EsperTech Inc.
All rights reserved.
Visit us at espertech.com