public class RetryableOkHttpLoadBalancingClient extends OkHttpLoadBalancingClient implements org.springframework.cloud.client.loadbalancer.ServiceInstanceChooser
config, connectTimeout, delegate, followRedirects, okToRetryOnAllOperations, readTimeout, secure, serverIntrospector
Constructor and Description |
---|
RetryableOkHttpLoadBalancingClient(com.netflix.client.config.IClientConfig config,
ServerIntrospector serverIntrospector,
org.springframework.cloud.client.loadbalancer.LoadBalancedRetryPolicyFactory loadBalancedRetryPolicyFactory) |
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
getDelegate, initWithNiwsConfig, isSecure
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 RetryableOkHttpLoadBalancingClient(com.netflix.client.config.IClientConfig config, ServerIntrospector serverIntrospector, org.springframework.cloud.client.loadbalancer.LoadBalancedRetryPolicyFactory loadBalancedRetryPolicyFactory)
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.