Class SettableHealthChecker

java.lang.Object
com.linecorp.armeria.common.util.AbstractListenable<HealthChecker>
com.linecorp.armeria.server.healthcheck.SettableHealthChecker
All Implemented Interfaces:
Listenable<HealthChecker>, HealthChecker, ListenableHealthChecker

public final class SettableHealthChecker
extends AbstractListenable<HealthChecker>
implements ListenableHealthChecker
A simple ListenableHealthChecker whose state can be set by a caller. This can be used in case server health should have additional conditions besides the state of the Server. e.g. it should depend on the health of a backend.