public class RetryableOkHttpLoadBalancingClient extends OkHttpLoadBalancingClient implements org.springframework.cloud.client.loadbalancer.ServiceInstanceChooser
config, connectTimeout, delegate, followRedirects, okToRetryOnAllOperations, readTimeout, secure, serverIntrospector
Constructor and Description |
---|
RetryableOkHttpLoadBalancingClient(okhttp3.OkHttpClient delegate,
com.netflix.client.config.IClientConfig config,
ServerIntrospector serverIntrospector,
org.springframework.cloud.client.loadbalancer.LoadBalancedRetryPolicyFactory loadBalancedRetryPolicyFactory)
Deprecated.
|
RetryableOkHttpLoadBalancingClient(okhttp3.OkHttpClient delegate,
com.netflix.client.config.IClientConfig config,
ServerIntrospector serverIntrospector,
org.springframework.cloud.client.loadbalancer.LoadBalancedRetryPolicyFactory loadBalancedRetryPolicyFactory,
org.springframework.cloud.client.loadbalancer.LoadBalancedBackOffPolicyFactory loadBalancedBackOffPolicyFactory) |
Modifier and Type | Method and Description |
---|---|
org.springframework.cloud.client.ServiceInstance |
choose(String serviceId) |
OkHttpRibbonResponse |
execute(OkHttpRibbonRequest ribbonRequest,
com.netflix.client.config.IClientConfig configOverride) |
com.netflix.client.RequestSpecificRetryHandler |
getRequestSpecificRetryHandler(OkHttpRibbonRequest request,
com.netflix.client.config.IClientConfig requestConfig) |
createDelegate, reconstructURIWithServer
customizeLoadBalancerCommandBuilder, getDelegate, initWithNiwsConfig, 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
@Deprecated public RetryableOkHttpLoadBalancingClient(okhttp3.OkHttpClient delegate, com.netflix.client.config.IClientConfig config, ServerIntrospector serverIntrospector, org.springframework.cloud.client.loadbalancer.LoadBalancedRetryPolicyFactory loadBalancedRetryPolicyFactory)
public RetryableOkHttpLoadBalancingClient(okhttp3.OkHttpClient delegate, com.netflix.client.config.IClientConfig config, ServerIntrospector serverIntrospector, org.springframework.cloud.client.loadbalancer.LoadBalancedRetryPolicyFactory loadBalancedRetryPolicyFactory, org.springframework.cloud.client.loadbalancer.LoadBalancedBackOffPolicyFactory loadBalancedBackOffPolicyFactory)
public OkHttpRibbonResponse execute(OkHttpRibbonRequest ribbonRequest, com.netflix.client.config.IClientConfig configOverride) throws Exception
execute
in interface com.netflix.client.IClient<OkHttpRibbonRequest,OkHttpRibbonResponse>
execute
in class OkHttpLoadBalancingClient
Exception
public org.springframework.cloud.client.ServiceInstance choose(String serviceId)
choose
in interface org.springframework.cloud.client.loadbalancer.ServiceInstanceChooser
public com.netflix.client.RequestSpecificRetryHandler getRequestSpecificRetryHandler(OkHttpRibbonRequest request, com.netflix.client.config.IClientConfig requestConfig)
getRequestSpecificRetryHandler
in class AbstractLoadBalancingClient<OkHttpRibbonRequest,OkHttpRibbonResponse,okhttp3.OkHttpClient>
Copyright © 2017 Pivotal Software, Inc.. All rights reserved.