|
||||||||||
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 secIntervalSize,
ViewServiceContext 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. |
java.lang.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 secIntervalSize, ViewServiceContext context, OutputCallback outputCallback)
secIntervalSize
- is the number of seconds to batch events for.context
- is the view context for time schedulingoutputCallback
- is the callback to make once the condition is satisfiedMethod 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 java.lang.String toString()
toString
in class java.lang.Object
protected static long computeWaitMSec(long current, long reference, long interval)
current
- is the current timereference
- is the reference pointinterval
- is the interval size
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |