net.esper.pattern.guard
Class TimerWithinGuardFactory
java.lang.Object
net.esper.pattern.guard.TimerWithinGuardFactory
- All Implemented Interfaces:
- GuardFactory
public class TimerWithinGuardFactory
- extends Object
- implements GuardFactory
Factory for TimerWithinGuard
instances.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TimerWithinGuardFactory
public TimerWithinGuardFactory(int msec)
- Number of milliseconds before guard expiration.
- Parameters:
msec
- number of millis
makeGuard
public Guard makeGuard(PatternContext context,
Quitable quitable)
- Description copied from interface:
GuardFactory
- Constructs a guard instance.
- Specified by:
makeGuard
in interface GuardFactory
- Parameters:
context
- - services for use by guardquitable
- - to use for indicating the guard has quit
- Returns:
- guard instance