1 package de.juplo.kafka;
3 import lombok.RequiredArgsConstructor;
4 import org.springframework.boot.actuate.health.Health;
5 import org.springframework.boot.actuate.health.HealthIndicator;
6 import org.springframework.stereotype.Component;
10 @RequiredArgsConstructor
11 public class ApplicationHealthIndicator implements HealthIndicator
13 private final EndlessConsumer<String, String> consumer;
17 public Health health()
24 .orElse(Health.outOfService())
27 catch (IllegalStateException e)
29 return Health.up().build();