public class TimerWithinGuard extends Object implements Guard, ScheduleHandleCallback
MatchedEventMap
instances pass until then.Constructor and Description |
---|
TimerWithinGuard(long delta,
Quitable quitable)
Ctor.
|
Modifier and Type | Method and Description |
---|---|
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(EngineLevelExtensionServicesContext engineLevelExtensionServicesContext)
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.
|
public TimerWithinGuard(long delta, Quitable quitable)
delta
- - number of millisecond to guard expirationquitable
- - to use to indicate that the gaurd quittedpublic void startGuard()
Guard
startGuard
in interface Guard
public void stopGuard()
Guard
public boolean inspect(MatchedEventMap matchEvent)
Guard
public final void scheduledTrigger(EngineLevelExtensionServicesContext engineLevelExtensionServicesContext)
ScheduleHandleCallback
scheduledTrigger
in interface ScheduleHandleCallback
engineLevelExtensionServicesContext
- is a marker interface for providing custom extension services
passed to the triggered classpublic void accept(EventGuardVisitor visitor)