Class HttpSupplier

java.lang.Object
org.springframework.cloud.function.web.source.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 Details

    • 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 Details

    • get

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