|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.espertech.esper.pattern.guard.TimerWithinGuard
public class TimerWithinGuard
Guard implementation that keeps a timer instance and quits when the timer expired,
letting all MatchedEventMap
instances pass until then.
Constructor Summary | |
---|---|
TimerWithinGuard(long msec,
Quitable quitable)
Ctor. |
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 |
scheduledTrigger(ExtensionServicesContext extensionServicesContext)
Callback that is invoked as indicated by a schedule added to the scheduling service. |
void |
startGuard()
Start the guard operation. |
void |
stopGuard()
Called when sub-expression quits, or when the pattern stopped. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TimerWithinGuard(long msec, Quitable quitable)
msec
- - number of millisecond to guard expirationquitable
- - to use to indicate that the gaurd quittedMethod Detail |
---|
public void startGuard()
Guard
startGuard
in interface Guard
public void stopGuard()
Guard
stopGuard
in interface Guard
public boolean inspect(MatchedEventMap matchEvent)
Guard
inspect
in interface Guard
matchEvent
- is the map of matching events
public final void scheduledTrigger(ExtensionServicesContext extensionServicesContext)
ScheduleHandleCallback
scheduledTrigger
in interface ScheduleHandleCallback
extensionServicesContext
- is a marker interface for providing custom extension services
passed to the triggered classpublic void accept(EventGuardVisitor visitor)
accept
in interface Guard
|
© 2006-2015 EsperTech Inc. All rights reserved. Visit us at espertech.com |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |