public final class ServiceInstanceListSupplierBuilder extends Object
ServiceInstanceListSupplier hierarchy to be used in
ReactorLoadBalancer configuration.| Modifier and Type | Class and Description |
|---|---|
static interface |
ServiceInstanceListSupplierBuilder.Creator
Allows creating a
ServiceInstanceListSupplier instance based on provided
ConfigurableApplicationContext. |
static interface |
ServiceInstanceListSupplierBuilder.DelegateCreator
Allows creating a
ServiceInstanceListSupplier instance based on provided
ConfigurableApplicationContext and another
ServiceInstanceListSupplier instance that will be used as a delegate. |
public ServiceInstanceListSupplierBuilder withBlockingDiscoveryClient()
DiscoveryClient-based
DiscoveryClientServiceInstanceListSupplier as a base
ServiceInstanceListSupplier in the hierarchy.ServiceInstanceListSupplierBuilder objectpublic ServiceInstanceListSupplierBuilder withDiscoveryClient()
ReactiveDiscoveryClient-based
DiscoveryClientServiceInstanceListSupplier as a base
ServiceInstanceListSupplier in the hierarchy.ServiceInstanceListSupplierBuilder objectpublic ServiceInstanceListSupplierBuilder withBase(ServiceInstanceListSupplier supplier)
ServiceInstanceListSupplier as a base
ServiceInstanceListSupplier in the hierarchy.supplier - a user-provided ServiceInstanceListSupplier instanceServiceInstanceListSupplierBuilder objectpublic ServiceInstanceListSupplierBuilder withHealthChecks()
HealthCheckServiceInstanceListSupplier to the
ServiceInstanceListSupplier hierarchy.ServiceInstanceListSupplierBuilder objectpublic ServiceInstanceListSupplierBuilder withHealthChecks(org.springframework.web.reactive.function.client.WebClient webClient)
HealthCheckServiceInstanceListSupplier that uses user-provided
WebClient instance to the ServiceInstanceListSupplier hierarchy.webClient - a user-provided WebClient instanceServiceInstanceListSupplierBuilder objectpublic ServiceInstanceListSupplierBuilder withSameInstancePreference()
SameInstancePreferenceServiceInstanceListSupplier to the
ServiceInstanceListSupplier hierarchy.ServiceInstanceListSupplierBuilder objectpublic ServiceInstanceListSupplierBuilder withBlockingHealthChecks()
HealthCheckServiceInstanceListSupplier that uses user-provided
RestTemplate instance to the ServiceInstanceListSupplier hierarchy.ServiceInstanceListSupplierBuilder objectpublic ServiceInstanceListSupplierBuilder withBlockingHealthChecks(org.springframework.web.client.RestTemplate restTemplate)
HealthCheckServiceInstanceListSupplier that uses user-provided
RestTemplate instance to the ServiceInstanceListSupplier hierarchy.restTemplate - a user-provided RestTemplate instanceServiceInstanceListSupplierBuilder objectpublic ServiceInstanceListSupplierBuilder withZonePreference()
ZonePreferenceServiceInstanceListSupplier to the
ServiceInstanceListSupplier hierarchy.ServiceInstanceListSupplierBuilder objectpublic ServiceInstanceListSupplierBuilder withRequestBasedStickySession()
RequestBasedStickySessionServiceInstanceListSupplier to the
ServiceInstanceListSupplier hierarchy.ServiceInstanceListSupplierBuilder objectpublic ServiceInstanceListSupplierBuilder withCaching()
LoadBalancerCacheManager is available in the context, wraps created
ServiceInstanceListSupplier hierarchy with a
CachingServiceInstanceListSupplier instance to provide a caching mechanism
for service instances. Uses ObjectProvider to lazily resolve
LoadBalancerCacheManager.ServiceInstanceListSupplierBuilder objectpublic ServiceInstanceListSupplierBuilder withRetryAwareness()
public ServiceInstanceListSupplier build(org.springframework.context.ConfigurableApplicationContext context)
ServiceInstanceListSupplier hierarchy.context - application contextServiceInstanceListSupplier instance on top of the delegate
hierarchyCopyright © 2020 Pivotal Software, Inc.. All rights reserved.