public Mono<WebEndpointResponse<Health>> health(SecurityContext securityContext, ShowDetails showDetails) { return this.delegate.health().map((health) -> this.responseMapper.map(health, securityContext, showDetails)); }
@ReadOperation public Mono<WebEndpointResponse<Health>> health(SecurityContext securityContext) { return this.delegate.health() .map((health) -> this.responseMapper.map(health, securityContext)); }
@Override public Mono<Health> health() { return Flux.fromIterable(this.registry.getAll().entrySet()) .flatMap((entry) -> Mono.zip(Mono.just(entry.getKey()), entry.getValue().health().compose(this.timeoutCompose))) .collectMap(Tuple2::getT1, Tuple2::getT2) .map(this.healthAggregator::aggregate); }
private HealthIndicator adapt(ReactiveHealthIndicator indicator) { return () -> indicator.health().block(); }