|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.esper.eql.view.OutputConditionTime
public final class OutputConditionTime
Output condition that is satisfied at the end of every time interval of a given length.
Constructor Summary | |
---|---|
OutputConditionTime(Double intervalSize,
boolean isMinutesUnit,
VariableReader reader,
StatementContext context,
OutputCallback outputCallback)
Constructor. |
Method Summary | |
---|---|
protected static long |
computeWaitMSec(long current,
long reference,
long interval)
Given a current time and a reference time and an interval size, compute the amount of milliseconds till the next interval. |
long |
getMsecIntervalSize()
Returns the interval size in milliseconds. |
String |
toString()
|
void |
updateOutputCondition(int newEventsCount,
int oldEventsCount)
Update the output condition. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public OutputConditionTime(Double intervalSize, boolean isMinutesUnit, VariableReader reader, StatementContext context, OutputCallback outputCallback)
intervalSize
- is the number of minutes or seconds to batch events for.context
- is the view context for time schedulingoutputCallback
- is the callback to make once the condition is satisfiedreader
- is for reading the variable value, if a variable was supplied, else nullisMinutesUnit
- is true to indicate the unit is minutes, or false for the unit as secondsMethod Detail |
---|
public final long getMsecIntervalSize()
public final void updateOutputCondition(int newEventsCount, int oldEventsCount)
OutputCondition
updateOutputCondition
in interface OutputCondition
newEventsCount
- - number of new events incomingoldEventsCount
- - number of old events incomingpublic final String toString()
toString
in class Object
protected static long computeWaitMSec(long current, long reference, long interval)
current
- is the current timereference
- is the reference pointinterval
- is the interval size
|
© 2007 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 |