net.esper.pattern.guard
Class TimerWithinGuardFactory
java.lang.Object
net.esper.pattern.guard.TimerWithinGuardFactory
- All Implemented Interfaces:
- GuardFactory, MetaDefItem
public class TimerWithinGuardFactory
- extends Object
- implements GuardFactory, MetaDefItem
Factory for TimerWithinGuard
instances.
Field Summary |
protected long |
milliseconds
Number of milliseconds. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
milliseconds
protected long milliseconds
- Number of milliseconds.
TimerWithinGuardFactory
public TimerWithinGuardFactory()
setGuardParameters
public void setGuardParameters(List<Object> guardParameters)
throws GuardParameterException
- Description copied from interface:
GuardFactory
- Sets the guard object parameters.
- Specified by:
setGuardParameters
in interface GuardFactory
- Parameters:
guardParameters
- is a list of parameters
- Throws:
GuardParameterException
- thrown to indicate a parameter problem
makeGuard
public Guard makeGuard(PatternContext context,
Quitable quitable,
Object stateNodeId,
Object guardState)
- 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 quitstateNodeId
- - a node id for the state objectguardState
- - state node for guard
- Returns:
- guard instance