This commit is contained in:
parent
bfcd5285f5
commit
764d6ad9be
1 changed files with 1 additions and 0 deletions
|
|
@ -79,6 +79,7 @@ public class MonitoringService {
|
|||
}
|
||||
|
||||
public void run() {
|
||||
log.debug("Running scheduler for monitoring by membercode: {}", config.getMonitoringMembercodes());
|
||||
ScheduledExecutorService scheduler = Executors.newSingleThreadScheduledExecutor(new CustomizableThreadFactory("monitoring-"));
|
||||
long period = config.getMonitoringInterval() != null ? config.getMonitoringInterval() : 15;
|
||||
scheduler.scheduleAtFixedRate(this::monitor, 0, period, TimeUnit.MINUTES);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue