Interface HostProvider<T extends HostProvider<T>>
Deprecated.
since 5.0
Infrastructure helper class aware of hosts within the cluster and the health of those allowing easy selection of
active ones.
- Since:
- 3.2
- Author:
- Christoph Strobl, Mark Paluch, Peter-Josef Meisch
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic class
Deprecated.Value object accumulating information about an Elasticsearch cluster.static enum
Deprecated.HostProvider.Verification
allows to influence the lookup strategy for active hosts. -
Method Summary
Modifier and TypeMethodDescriptionreactor.core.publisher.Mono<HostProvider.ClusterInformation>
Deprecated.Obtain information about known cluster nodes.createWebClient
(InetSocketAddress endpoint) default reactor.core.publisher.Mono<WebClient>
Deprecated.Get theWebClient
connecting to an active host utilizing cachedElasticsearchHost
.default reactor.core.publisher.Mono<WebClient>
getActive
(HostProvider.Verification verification) Deprecated.Get theWebClient
connecting to an active host.default reactor.core.publisher.Mono<WebClient>
Deprecated.Get theWebClient
connecting to an active host utilizing cachedElasticsearchHost
.default reactor.core.publisher.Mono<WebClient>
getWebClient
(HostProvider.Verification verification) Deprecated.Get theWebClient
connecting to an active host.default reactor.core.publisher.Mono<InetSocketAddress>
Deprecated.Lookup an active host inlazy
mode utilizing cachedElasticsearchHost
.reactor.core.publisher.Mono<InetSocketAddress>
lookupActiveHost
(HostProvider.Verification verification) Deprecated.Lookup an active host in using the givenHostProvider.Verification
.static HostProvider<?>
provider
(WebClientProvider clientProvider, Supplier<HttpHeaders> headersSupplier, InetSocketAddress... endpoints) Deprecated.Create a newHostProvider
best suited for the givenWebClientProvider
and number of hosts.
-
Method Details
-
provider
static HostProvider<?> provider(WebClientProvider clientProvider, Supplier<HttpHeaders> headersSupplier, InetSocketAddress... endpoints) Deprecated.Create a newHostProvider
best suited for the givenWebClientProvider
and number of hosts.- Parameters:
clientProvider
- must not be null .headersSupplier
- to supply custom headers, must not be nullendpoints
- must not be null nor empty.- Returns:
- new instance of
HostProvider
.
-
lookupActiveHost
Deprecated.Lookup an active host inlazy
mode utilizing cachedElasticsearchHost
.- Returns:
- the
Mono
emitting the active host oran error
if none found.
-
lookupActiveHost
reactor.core.publisher.Mono<InetSocketAddress> lookupActiveHost(HostProvider.Verification verification) Deprecated.Lookup an active host in using the givenHostProvider.Verification
.- Parameters:
verification
-- Returns:
- the
Mono
emitting the active host oran error
(NoReachableHostException
) if none found.
-
getActive
Deprecated.Get theWebClient
connecting to an active host utilizing cachedElasticsearchHost
.- Returns:
- the
Mono
emitting the client for an active host oran error
if none found.
-
getActive
Deprecated.Get theWebClient
connecting to an active host.- Parameters:
verification
- must not be null.- Returns:
- the
Mono
emitting the client for an active host oran error
if none found.
-
getWebClient
Deprecated.Get theWebClient
connecting to an active host utilizing cachedElasticsearchHost
.- Returns:
- the
Mono
emitting the client for an active host oran error
if none found. - Since:
- 4.4
-
getWebClient
Deprecated.Get theWebClient
connecting to an active host.- Parameters:
verification
- must not be null.- Returns:
- the
Mono
emitting the client for an active host oran error
if none found. - Since:
- 4.4
-
createWebClient
Deprecated.- Parameters:
endpoint
- must not be null.- Returns:
- a
WebClient
using the the given endpoint as transport url.
-
clusterInfo
reactor.core.publisher.Mono<HostProvider.ClusterInformation> clusterInfo()Deprecated.Obtain information about known cluster nodes.- Returns:
- the
Mono
emittingHostProvider.ClusterInformation
when available.
-