public class HttpSupplier extends Object implements Supplier<reactor.core.publisher.Flux<?>>
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.Constructor and Description |
---|
HttpSupplier(org.springframework.web.reactive.function.client.WebClient client,
ExporterProperties props) |
public HttpSupplier(org.springframework.web.reactive.function.client.WebClient client, ExporterProperties props)
client
- the WebClient to use. The baseUrl should be set.props
- the ExporterProperties to use to parameterize the requests.Copyright © 2021 Pivotal Software, Inc.. All rights reserved.