use of de.codecentric.boot.admin.notify.filter.ApplicationIdNotificationFilter in project spring-boot-admin by codecentric.
the class NotificationFilterController method createFilter.
private NotificationFilter createFilter(String id, String name, long ttl) {
long expiry = ttl > 0L ? System.currentTimeMillis() + ttl : ttl;
NotificationFilter filter = hasText(id) ? new ApplicationIdNotificationFilter(id, expiry) : new ApplicationNameNotificationFilter(name, expiry);
return filter;
}
Aggregations