|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.espertech.esper.pattern.guard.TimerWithinOrMaxCountGuardFactory
public class TimerWithinOrMaxCountGuardFactory
Field Summary | |
---|---|
protected MatchedEventConvertor |
convertor
For converting matched-events maps to events-per-stream. |
protected ExprNode |
millisecondsExpr
Number of milliseconds. |
protected ExprNode |
numCountToExpr
Number of count-to max. |
Constructor Summary | |
---|---|
TimerWithinOrMaxCountGuardFactory()
|
Method Summary | |
---|---|
protected long |
computeMilliseconds(MatchedEventMap beginState,
PatternAgentInstanceContext context)
|
protected int |
computeNumCountTo(MatchedEventMap beginState,
PatternAgentInstanceContext context)
|
Guard |
makeGuard(PatternAgentInstanceContext context,
MatchedEventMap beginState,
Quitable quitable,
EvalStateNodeNumber stateNodeId,
java.lang.Object guardState)
Constructs a guard instance. |
void |
setGuardParameters(java.util.List<ExprNode> parameters,
MatchedEventConvertor convertor)
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 |
---|
protected ExprNode millisecondsExpr
protected ExprNode numCountToExpr
protected transient MatchedEventConvertor convertor
Constructor Detail |
---|
public TimerWithinOrMaxCountGuardFactory()
Method Detail |
---|
public void setGuardParameters(java.util.List<ExprNode> parameters, MatchedEventConvertor convertor) throws GuardParameterException
GuardFactory
setGuardParameters
in interface GuardFactory
parameters
- is a list of parametersconvertor
- for converting a
GuardParameterException
- thrown to indicate a parameter problemprotected long computeMilliseconds(MatchedEventMap beginState, PatternAgentInstanceContext context)
protected int computeNumCountTo(MatchedEventMap beginState, PatternAgentInstanceContext context)
public Guard makeGuard(PatternAgentInstanceContext context, MatchedEventMap beginState, Quitable quitable, EvalStateNodeNumber stateNodeId, java.lang.Object guardState)
GuardFactory
makeGuard
in interface GuardFactory
context
- - services for use by guardbeginState
- - the prior matching eventsquitable
- - to use for indicating the guard has quitstateNodeId
- - a node id for the state objectguardState
- - state node for guard
|
© 2006-2015 EsperTech Inc. All rights reserved. Visit us at espertech.com |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |