Github user clebertsuconic commented on a diff in the pull request:
https://github.com/apache/activemq-artemis/pull/1596#discussion_r145424777
--- Diff:
artemis-commons/src/main/java/org/apache/activemq/artemis/core/server/ActiveMQScheduledComponent.java
---
@@ -251,6 +251,9 @@ public synchronized boolean isStarted() {
// this will restart the scheduled component upon changes
private void restartIfNeeded() {
if (isStarted()) {
+ // it has already been through an initial delay,
+ // now we just use the next interval
+ this.initialDelay = period;
--- End diff --
What do you need an initialDelay different from the frequency anyways? What
is the usecase?
---