Class HttpSupplier
java.lang.Object
org.springframework.cloud.function.web.source.HttpSupplier
- All Implemented Interfaces:
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 Summary
ConstructorsConstructorDescriptionHttpSupplier(org.springframework.web.reactive.function.client.WebClient client, ExporterProperties props) -
Method Summary
-
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