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