D - delegateS - ContextAwareRequest subtypeT - ServiceInstanceChooser subtypepublic abstract class AbstractLoadBalancingClient<S extends ContextAwareRequest,T extends com.netflix.client.IResponse,D>
extends com.netflix.client.AbstractLoadBalancerAwareClient<S,T>
implements org.springframework.cloud.client.loadbalancer.ServiceInstanceChooser
| Modifier and Type | Field and Description |
|---|---|
protected com.netflix.client.config.IClientConfig |
config |
protected int |
connectTimeout |
protected D |
delegate |
protected boolean |
followRedirects |
protected boolean |
gzipPayload |
protected boolean |
okToRetryOnAllOperations |
protected int |
readTimeout |
protected boolean |
secure |
protected ServerIntrospector |
serverIntrospector |
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractLoadBalancingClient(D delegate,
com.netflix.client.config.IClientConfig config,
ServerIntrospector serverIntrospector) |
protected |
AbstractLoadBalancingClient(com.netflix.client.config.IClientConfig config,
ServerIntrospector serverIntrospector) |
| Modifier and Type | Method and Description |
|---|---|
org.springframework.cloud.client.ServiceInstance |
choose(String serviceId) |
protected abstract D |
createDelegate(com.netflix.client.config.IClientConfig config) |
protected void |
customizeLoadBalancerCommandBuilder(S request,
com.netflix.client.config.IClientConfig config,
com.netflix.loadbalancer.reactive.LoadBalancerCommand.Builder<T> builder) |
D |
getDelegate() |
com.netflix.client.RequestSpecificRetryHandler |
getRequestSpecificRetryHandler(S request,
com.netflix.client.config.IClientConfig requestConfig) |
void |
initWithNiwsConfig(com.netflix.client.config.IClientConfig clientConfig) |
boolean |
isClientRetryable(ContextAwareRequest request) |
protected boolean |
isSecure(com.netflix.client.config.IClientConfig config) |
void |
validateServiceInstance(org.springframework.cloud.client.ServiceInstance serviceInstance) |
buildLoadBalancerCommand, executeWithLoadBalancer, executeWithLoadBalancer, isCircuitBreakerException, isRetriable, isRetriableExceptionderiveHostAndPortFromVipAddress, deriveSchemeAndPortFromPartialUri, generateNIWSException, getClientName, getDeepestCause, getDefaultPortFromScheme, getExecuteTracer, getLoadBalancer, getMaxAutoRetries, getMaxAutoRetriesNextServer, getNumberRetriesOnSameServer, getRetriesNextServer, getRetryHandler, getServerFromLoadBalancer, getServerStats, handleSameServerRetry, isOkToRetryOnAllOperations, noteError, noteOpenConnection, noteRequestCompletion, noteRequestCompletion, noteResponse, reconstructURIWithServer, setLoadBalancer, setMaxAutoRetries, setMaxAutoRetriesNextServer, setOkToRetryOnAllOperations, setRetryHandlerprotected int connectTimeout
protected int readTimeout
protected boolean secure
protected boolean followRedirects
protected boolean gzipPayload
protected boolean okToRetryOnAllOperations
protected final D delegate
protected final com.netflix.client.config.IClientConfig config
protected final ServerIntrospector serverIntrospector
protected AbstractLoadBalancingClient(com.netflix.client.config.IClientConfig config,
ServerIntrospector serverIntrospector)
protected AbstractLoadBalancingClient(D delegate, com.netflix.client.config.IClientConfig config, ServerIntrospector serverIntrospector)
public boolean isClientRetryable(ContextAwareRequest request)
public void initWithNiwsConfig(com.netflix.client.config.IClientConfig clientConfig)
initWithNiwsConfig in interface com.netflix.client.IClientConfigAwareinitWithNiwsConfig in class com.netflix.loadbalancer.LoadBalancerContextprotected abstract D createDelegate(com.netflix.client.config.IClientConfig config)
public D getDelegate()
public com.netflix.client.RequestSpecificRetryHandler getRequestSpecificRetryHandler(S request, com.netflix.client.config.IClientConfig requestConfig)
getRequestSpecificRetryHandler in class com.netflix.client.AbstractLoadBalancerAwareClient<S extends ContextAwareRequest,T extends com.netflix.client.IResponse>protected boolean isSecure(com.netflix.client.config.IClientConfig config)
protected void customizeLoadBalancerCommandBuilder(S request, com.netflix.client.config.IClientConfig config, com.netflix.loadbalancer.reactive.LoadBalancerCommand.Builder<T> builder)
customizeLoadBalancerCommandBuilder in class com.netflix.client.AbstractLoadBalancerAwareClient<S extends ContextAwareRequest,T extends com.netflix.client.IResponse>public org.springframework.cloud.client.ServiceInstance choose(String serviceId)
choose in interface org.springframework.cloud.client.loadbalancer.ServiceInstanceChooserpublic void validateServiceInstance(org.springframework.cloud.client.ServiceInstance serviceInstance)
throws com.netflix.client.ClientException
com.netflix.client.ClientExceptionCopyright © 2020 Pivotal Software, Inc.. All rights reserved.