Class HttpSupplier

  • All Implemented Interfaces:
    Supplier<reactor.core.publisher.Flux<?>>

    public class HttpSupplier
    extends Object
    implements Supplier<reactor.core.publisher.Flux<?>>
    A Supplier that pulls data from an HTTP endpoint. Repeatedly polls the endpoint until a non-2xx response is received, at which point it will repeatedly produced a Mono at 1 sec intervals until the next 2xx response.
    Author:
    Dave Syer, Oleg Zhurakousky
    • Constructor Detail

      • HttpSupplier

        public HttpSupplier​(org.springframework.web.reactive.function.client.WebClient client,
                            ExporterProperties props)
        Parameters:
        client - the WebClient to use. The baseUrl should be set.
        props - the ExporterProperties to use to parameterize the requests.
    • Method Detail

      • get

        public reactor.core.publisher.Flux<?> get()
        Specified by:
        get in interface Supplier<reactor.core.publisher.Flux<?>>