fix: update the correct timer id in CronHandler to be able to stop it
@@ -59,9 +59,9 @@ public class EndpointRuleCronHandler implements Handler<Long>, Serializable {
}
@Override
- public void handle(Long timerId) {
+ public void handle(final Long timerId) {
final long delay = getDelay(expression);
- timerId = vertx.setTimer(delay, this);
+ this.timerId = vertx.setTimer(delay, this);
handler.handle(timerId);
}
