Class IntervalCheck
java.lang.Object
de.codecentric.boot.admin.server.services.IntervalCheck
Calls the checkFn for all instances in the given time, but not before the given
retention time has passed. The instances which will be checked have to be registered
via `markAsChecked`.
- Author:
- Johannes Edmeier
-
Constructor Summary
ConstructorsConstructorDescriptionIntervalCheck(String name, Function<InstanceId, reactor.core.publisher.Mono<Void>> checkFn) IntervalCheck(String name, Function<InstanceId, reactor.core.publisher.Mono<Void>> checkFn, Duration interval, Duration minRetention) -
Method Summary
Modifier and TypeMethodDescriptionprotected reactor.core.publisher.Mono<Void>voidmarkAsChecked(InstanceId instanceId) voidsetInterval(Duration interval) voidsetMinRetention(Duration minRetention) voidstart()voidstop()
-
Constructor Details
-
IntervalCheck
-
IntervalCheck
-
-
Method Details
-
start
public void start() -
markAsChecked
-
checkAllInstances
-
stop
public void stop() -
setInterval
-
setMinRetention
-