Class HealthCheckServiceInstanceListSupplier

  • All Implemented Interfaces:
    Supplier<reactor.core.publisher.Flux<List<ServiceInstance>>>, org.springframework.beans.factory.DisposableBean, org.springframework.beans.factory.InitializingBean, ServiceInstanceListSupplier

    public class HealthCheckServiceInstanceListSupplier
    extends DelegatingServiceInstanceListSupplier
    implements org.springframework.beans.factory.InitializingBean, org.springframework.beans.factory.DisposableBean
    A ServiceInstanceListSupplier implementation that verifies whether the instances are alive and only returns the healthy one, unless there are none. Uses a user-provided function to ping the health endpoint of the instances.
    Since:
    2.2.0
    Author:
    Olga Maciaszek-Sharma, Roman Matiushchenko, Roman Chigvintsev