public class TimerWithinOrMaxCountGuard extends Object implements Guard, ScheduleHandleCallback
MatchedEventMap
instances pass until then.Modifier and Type | Field and Description |
---|---|
static String |
NAME_AUDITPROVIDER_SCHEDULE |
Constructor and Description |
---|
TimerWithinOrMaxCountGuard(long deltaTime,
int numCountTo,
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()
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 static final String NAME_AUDITPROVIDER_SCHEDULE
public TimerWithinOrMaxCountGuard(long deltaTime, int numCountTo, Quitable quitable)
deltaTime
- - number of millisecond to guard expirationnumCountTo
- - max number of countsquitable
- - to use to indicate that the gaurd quittedpublic void startGuard()
Guard
startGuard
in interface Guard
public boolean inspect(MatchedEventMap matchEvent)
Guard
public void stopGuard()
Guard
public void scheduledTrigger()
ScheduleHandleCallback
scheduledTrigger
in interface ScheduleHandleCallback
public void accept(EventGuardVisitor visitor)
Copyright © 2005–2018. All rights reserved.