com.espertech.esper.pattern.guard
Interface GuardFactory

All Known Implementing Classes:
ExpressionGuardFactory, GuardFactorySupport, TimerWithinGuardFactory, TimerWithinOrMaxCountGuardFactory

public interface GuardFactory

Interface for a factory for Guard instances.


Method Summary
 Guard makeGuard(PatternAgentInstanceContext context, MatchedEventMap beginState, Quitable quitable, EvalStateNodeNumber stateNodeId, java.lang.Object guardState)
          Constructs a guard instance.
 void setGuardParameters(java.util.List<ExprNode> guardParameters, MatchedEventConvertor convertor)
          Sets the guard object parameters.
 

Method Detail

setGuardParameters

void setGuardParameters(java.util.List<ExprNode> guardParameters,
                        MatchedEventConvertor convertor)
                        throws GuardParameterException
Sets the guard object parameters.

Parameters:
guardParameters - is a list of parameters
convertor - for converting a
Throws:
GuardParameterException - thrown to indicate a parameter problem

makeGuard

Guard makeGuard(PatternAgentInstanceContext context,
                MatchedEventMap beginState,
                Quitable quitable,
                EvalStateNodeNumber stateNodeId,
                java.lang.Object guardState)
Constructs a guard instance.

Parameters:
context - - services for use by guard
beginState - - the prior matching events
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

© 2006-2015 EsperTech Inc.
All rights reserved.
Visit us at espertech.com