Continue to poll for config changes after startup.
This commit is contained in:
parent
b413f665d8
commit
426e6923ac
|
@ -73,6 +73,7 @@ public class DynamicConfigurationManager {
|
||||||
}
|
}
|
||||||
|
|
||||||
new Thread(() -> {
|
new Thread(() -> {
|
||||||
|
while (true) {
|
||||||
try {
|
try {
|
||||||
retrieveDynamicConfiguration().ifPresent(configuration::set);
|
retrieveDynamicConfiguration().ifPresent(configuration::set);
|
||||||
} catch (Throwable t) {
|
} catch (Throwable t) {
|
||||||
|
@ -80,6 +81,7 @@ public class DynamicConfigurationManager {
|
||||||
}
|
}
|
||||||
|
|
||||||
Util.sleep(5000);
|
Util.sleep(5000);
|
||||||
|
}
|
||||||
}).start();
|
}).start();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue