net.esper.pattern.guard
Class TimerWithinGuardFactory

java.lang.Object
  extended by net.esper.pattern.guard.TimerWithinGuardFactory
All Implemented Interfaces:
Serializable, GuardFactory, MetaDefItem

public class TimerWithinGuardFactory
extends Object
implements GuardFactory, MetaDefItem

Factory for TimerWithinGuard instances.

See Also:
Serialized Form

Field Summary
protected  long milliseconds
          Number of milliseconds.
 
Constructor Summary
TimerWithinGuardFactory()
           
 
Method Summary
 Guard makeGuard(PatternContext context, Quitable quitable, Object stateNodeId, Object guardState)
          Constructs a guard instance.
 void setGuardParameters(List<Object> guardParameters)
          Sets the guard object parameters.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

milliseconds

protected long milliseconds
Number of milliseconds.

Constructor Detail

TimerWithinGuardFactory

public TimerWithinGuardFactory()
Method Detail

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 guard
quitable - - to use for indicating the guard has quit
stateNodeId - - a node id for the state object
guardState - - state node for guard
Returns:
guard instance