use of com.swiftmq.swiftlet.timer.event.TimerListener in project swiftmq-ce by iitsoftware.
the class NextTimer method start.
@Override
public void start() throws Exception {
timerListener = new TimerListener() {
@Override
public void performTimeAction() {
ctx.streamProcessor.dispatch(new POTimer(null, NextTimer.this));
}
};
computeTime();
ctx.ctx.timerSwiftlet.addInstantTimerListener(millis, timerListener);
try {
usage.getProperty("started").setValue(new Boolean(true));
} catch (Exception e) {
e.printStackTrace();
}
}
Aggregations