All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.breuninger.boot.status.scheduler.CronScheduler Maven / Gradle / Ivy

package com.breuninger.boot.status.scheduler;

import org.springframework.scheduling.annotation.Scheduled;

import com.breuninger.boot.status.indicator.ApplicationStatusAggregator;

public final class CronScheduler implements Scheduler {

  private final ApplicationStatusAggregator aggregator;

  public CronScheduler(final ApplicationStatusAggregator aggregator) {
    this.aggregator = aggregator;
  }

  @Override
  @Scheduled(cron = "${breuninger.status.scheduler.cron}")
  public void update() {
    aggregator.update();
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy