update Esper time on OANDA heartbeat
This commit is contained in:
@ -181,9 +181,14 @@ public class EsperProcessor implements TickProcessor {
|
||||
* Send a single TickEvent to Esper.
|
||||
*/
|
||||
public void process(TickEvent tick) {
|
||||
DateTime time = tick.getTime();
|
||||
CurrentTimeEvent timeEvent = new CurrentTimeEvent(time.getMillis());
|
||||
engine.getEPRuntime().sendEvent(timeEvent);
|
||||
process(new CurrentTimeEvent(tick.getTime().getMillis()));
|
||||
engine.getEPRuntime().sendEvent(tick);
|
||||
}
|
||||
|
||||
/**
|
||||
* Update Esper's internal clock.
|
||||
*/
|
||||
public void process(CurrentTimeEvent timeEvent) {
|
||||
engine.getEPRuntime().sendEvent(timeEvent);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user