public class OkHttpLoadBalancingClient extends AbstractLoadBalancingClient<OkHttpRibbonRequest,OkHttpRibbonResponse,okhttp3.OkHttpClient>
config, connectTimeout, delegate, followRedirects, okToRetryOnAllOperations, readTimeout, secure, serverIntrospector
Constructor and Description |
---|
OkHttpLoadBalancingClient(com.netflix.client.config.IClientConfig config,
ServerIntrospector serverIntrospector) |
OkHttpLoadBalancingClient(okhttp3.OkHttpClient delegate,
com.netflix.client.config.IClientConfig config,
ServerIntrospector serverIntrospector) |
Modifier and Type | Method and Description |
---|---|
protected okhttp3.OkHttpClient |
createDelegate(com.netflix.client.config.IClientConfig config) |
OkHttpRibbonResponse |
execute(OkHttpRibbonRequest ribbonRequest,
com.netflix.client.config.IClientConfig configOverride) |
URI |
reconstructURIWithServer(com.netflix.loadbalancer.Server server,
URI original) |
customizeLoadBalancerCommandBuilder, getDelegate, getRequestSpecificRetryHandler, initWithNiwsConfig, isClientRetryable, isSecure
buildLoadBalancerCommand, 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, setLoadBalancer, setMaxAutoRetries, setMaxAutoRetriesNextServer, setOkToRetryOnAllOperations, setRetryHandler
public OkHttpLoadBalancingClient(com.netflix.client.config.IClientConfig config, ServerIntrospector serverIntrospector)
public OkHttpLoadBalancingClient(okhttp3.OkHttpClient delegate, com.netflix.client.config.IClientConfig config, ServerIntrospector serverIntrospector)
protected okhttp3.OkHttpClient createDelegate(com.netflix.client.config.IClientConfig config)
createDelegate
in class AbstractLoadBalancingClient<OkHttpRibbonRequest,OkHttpRibbonResponse,okhttp3.OkHttpClient>
public OkHttpRibbonResponse execute(OkHttpRibbonRequest ribbonRequest, com.netflix.client.config.IClientConfig configOverride) throws Exception
Exception
Copyright © 2018 Pivotal Software, Inc.. All rights reserved.