In Java Esper I would like to know when exactly has the timer on the time window ended. In other words, for example, in the EPL statement (taken from the esper home page):
select avg(price) from org.myapp.event.OrderEvent.win:time(30 sec)
The statement will be used to calculate average of prices of incoming events for 30 seconds, I would like to know if I can find out when the statement end. It would be nice if I could say run this statement and every 30 seconds output a statement saying 30 sec summary and the output throughout the 30 seconds.
I tried using the isStopped() method but that doesn't seem to help, unless it does and I could be using it wrong?