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<?>>
ASupplier
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 Summary
Constructors Constructor Description HttpSupplier(org.springframework.web.reactive.function.client.WebClient client, ExporterProperties props)
-
-
-
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.
-
-