Search in sources :

Example 1 with RemindingNotifier

use of de.codecentric.boot.admin.server.notify.RemindingNotifier in project spring-boot-admin by codecentric.

the class NotifierConfig method remindingNotifier.

@Primary
@Bean(initMethod = "start", destroyMethod = "stop")
public RemindingNotifier remindingNotifier() {
    // <2>
    RemindingNotifier notifier = new RemindingNotifier(filteringNotifier(), this.repository);
    notifier.setReminderPeriod(Duration.ofMinutes(10));
    notifier.setCheckReminderInverval(Duration.ofSeconds(10));
    return notifier;
}
Also used : RemindingNotifier(de.codecentric.boot.admin.server.notify.RemindingNotifier) Primary(org.springframework.context.annotation.Primary) Bean(org.springframework.context.annotation.Bean)

Aggregations

RemindingNotifier (de.codecentric.boot.admin.server.notify.RemindingNotifier)1 Bean (org.springframework.context.annotation.Bean)1 Primary (org.springframework.context.annotation.Primary)1