public abstract class AbstractLoadBalancingClient<S extends ContextAwareRequest,T extends com.netflix.client.IResponse,D>
extends com.netflix.client.AbstractLoadBalancerAwareClient<S,T>
Modifier and Type | Field and Description |
---|---|
protected com.netflix.client.config.IClientConfig |
config |
protected int |
connectTimeout |
protected D |
delegate |
protected boolean |
followRedirects |
protected boolean |
okToRetryOnAllOperations |
protected int |
readTimeout |
protected boolean |
secure |
protected ServerIntrospector |
serverIntrospector |
Modifier | Constructor and Description |
---|---|
|
AbstractLoadBalancingClient()
Deprecated.
|
protected |
AbstractLoadBalancingClient(D delegate,
com.netflix.client.config.IClientConfig config,
ServerIntrospector serverIntrospector) |
protected |
AbstractLoadBalancingClient(com.netflix.client.config.IClientConfig config,
ServerIntrospector serverIntrospector) |
|
AbstractLoadBalancingClient(com.netflix.loadbalancer.ILoadBalancer lb)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
protected abstract D |
createDelegate(com.netflix.client.config.IClientConfig config) |
D |
getDelegate() |
com.netflix.client.RequestSpecificRetryHandler |
getRequestSpecificRetryHandler(S request,
com.netflix.client.config.IClientConfig requestConfig) |
void |
initWithNiwsConfig(com.netflix.client.config.IClientConfig clientConfig) |
protected boolean |
isSecure(com.netflix.client.config.IClientConfig config) |
executeWithLoadBalancer, executeWithLoadBalancer, isCircuitBreakerException, isRetriable, isRetriableException
deriveHostAndPortFromVipAddress, 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, setRetryHandler
protected int connectTimeout
protected int readTimeout
protected boolean secure
protected boolean followRedirects
protected boolean okToRetryOnAllOperations
protected final D delegate
protected final com.netflix.client.config.IClientConfig config
protected final ServerIntrospector serverIntrospector
@Deprecated public AbstractLoadBalancingClient()
@Deprecated public AbstractLoadBalancingClient(com.netflix.loadbalancer.ILoadBalancer lb)
protected AbstractLoadBalancingClient(com.netflix.client.config.IClientConfig config, ServerIntrospector serverIntrospector)
protected AbstractLoadBalancingClient(D delegate, com.netflix.client.config.IClientConfig config, ServerIntrospector serverIntrospector)
public void initWithNiwsConfig(com.netflix.client.config.IClientConfig clientConfig)
initWithNiwsConfig
in interface com.netflix.client.IClientConfigAware
initWithNiwsConfig
in class com.netflix.loadbalancer.LoadBalancerContext
protected 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)
Copyright © 2017 Pivotal Software, Inc.. All rights reserved.