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
Nested ClassesModifier and TypeInterfaceDescriptionstatic classDeprecated.Value object accumulating information about an Elasticsearch cluster.static enumDeprecated.HostProvider.Verificationallows 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 theWebClientconnecting to an active host utilizing cachedElasticsearchHost.default reactor.core.publisher.Mono<WebClient>getActive(HostProvider.Verification verification) Deprecated.Get theWebClientconnecting to an active host.default reactor.core.publisher.Mono<WebClient>Deprecated.Get theWebClientconnecting to an active host utilizing cachedElasticsearchHost.default reactor.core.publisher.Mono<WebClient>getWebClient(HostProvider.Verification verification) Deprecated.Get theWebClientconnecting to an active host.default reactor.core.publisher.Mono<InetSocketAddress>Deprecated.Lookup an active host inlazymode 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 newHostProviderbest suited for the givenWebClientProviderand number of hosts.
-
Method Details
-
provider
static HostProvider<?> provider(WebClientProvider clientProvider, Supplier<HttpHeaders> headersSupplier, InetSocketAddress... endpoints) Deprecated.Create a newHostProviderbest suited for the givenWebClientProviderand 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 inlazymode utilizing cachedElasticsearchHost.- Returns:
- the
Monoemitting the active host oran errorif 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
Monoemitting the active host oran error(NoReachableHostException) if none found.
-
getActive
Deprecated.Get theWebClientconnecting to an active host utilizing cachedElasticsearchHost.- Returns:
- the
Monoemitting the client for an active host oran errorif none found.
-
getActive
Deprecated.Get theWebClientconnecting to an active host.- Parameters:
verification- must not be null.- Returns:
- the
Monoemitting the client for an active host oran errorif none found.
-
getWebClient
Deprecated.Get theWebClientconnecting to an active host utilizing cachedElasticsearchHost.- Returns:
- the
Monoemitting the client for an active host oran errorif none found. - Since:
- 4.4
-
getWebClient
Deprecated.Get theWebClientconnecting to an active host.- Parameters:
verification- must not be null.- Returns:
- the
Monoemitting the client for an active host oran errorif none found. - Since:
- 4.4
-
createWebClient
Deprecated.- Parameters:
endpoint- must not be null.- Returns:
- a
WebClientusing the the given endpoint as transport url.
-
clusterInfo
reactor.core.publisher.Mono<HostProvider.ClusterInformation> clusterInfo()Deprecated.Obtain information about known cluster nodes.- Returns:
- the
MonoemittingHostProvider.ClusterInformationwhen available.
-