runtime.sendEvent(new CurrentTimeEvent(5)); runtime.sendEvent(new StockEvent("GE")); runtime.sendEvent(new StockEvent("GOOG")); runtime.sendEvent(new CurrentTimeEvent(11)); runtime.sendEvent(new StockEvent("GE"));
long currentTime = current.getTimeInMillis();
public void timerCallback() { if ((ExecutionPathDebugLog.isDebugEnabled) && (log.isDebugEnabled())) { log.debug(".timerCallback Evaluating scheduled callbacks"); } long msec = services.getTimeSource().getTimeMillis(); CurrentTimeEvent currentTimeEvent = new CurrentTimeEvent(msec); sendEvent(currentTimeEvent); }
CurrentTimeEvent timeEvent1 = new CurrentTimeEvent(timeInMillis); esperSvc_.getEPRuntime().sendEvent(timeEvent1); CurrentTimeEvent timeEvent2 = new CurrentTimeEvent(timeInMillis); esperSvc_.getEPRuntime().sendEvent(timeEvent2);
public void advanceTime(Instant now) { if (timeProvider == null) throw new IllegalArgumentException("Can only advanceTime() when the Context was constructed with a TimeProvider"); if (lastTime == null) { // jump to the start time instead of stepping to it // log.debug("time:" + now.getMillis()); epRuntime.sendEvent(new CurrentTimeEvent(now.getMillis())); } else if (now.isBefore(lastTime)) throw new IllegalArgumentException("advanceTime must always move time forward. " + now + " < " + lastTime); else if (now.isAfter(lastTime)) { // log.debug("time:" + now.getMillis()); // step time up to now epRuntime.sendEvent(new CurrentTimeSpanEvent(now.getMillis())); } lastTime = now; }
epRuntime.sendEvent(new TimerControlEvent( TimerControlEvent.ClockType.CLOCK_EXTERNAL)); epRuntime.sendEvent(new CurrentTimeEvent(currentTimeExternal));