Interface BlockedQueriesConsulClient
@BlockedQueries
@Requires(beans=BlockingQueriesConfiguration.class)
@Client(id="consul",
path="/v1",
configuration=BlockingQueriesConfiguration.class)
public interface BlockedQueriesConsulClient
A non-blocking HTTP client for Consul, using Blocking Queries feature
to wait for potential changes using long polling.
- Since:
- 4.6.0
- Author:
- LE GALL BenoƮt
-
Method Summary
-
Method Details
-
watchValues
@Get(uri="/kv/{+key}?{&recurse}{&index}", single=true) reactor.core.publisher.Mono<List<KeyValue>> watchValues(String key, @Nullable @QueryValue @Nullable Boolean recurse, @Nullable @QueryValue @Nullable Integer index) Reads a Key from Consul. See KV Store - ReadKey API.- Parameters:
key
- The key to watchrecurse
- Whether the lookup is recursive or not. Whentrue
, treatkey
as a prefixindex
- The index value against which to wait for subsequent changes- Returns:
- A
Publisher
that emits a list ofKeyValue
-