Commit 86fd2c49 by 王祖波

12小时初始化一次

parent b2be902c
......@@ -66,6 +66,7 @@ public class HoloDataSource implements InitializingBean, DisposableBean {
if (client != null) {
client.close();
}
scheduler.shutdown();
}
@Override
......@@ -73,7 +74,7 @@ public class HoloDataSource implements InitializingBean, DisposableBean {
if (client == null) {
this.init();
}
scheduler.scheduleAtFixedRate(this::reinitialize, 1, 1, TimeUnit.HOURS);
scheduler.scheduleAtFixedRate(this::reinitialize, 12, 12, TimeUnit.HOURS);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment