|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.netflix.loadbalancer.LoadBalancerContext
com.netflix.loadbalancer.LoadBalancerExecutor
com.netflix.client.AbstractLoadBalancerAwareClient<S,T>
public abstract class AbstractLoadBalancerAwareClient<S extends com.netflix.client.ClientRequest,T extends com.netflix.client.IResponse>
Abstract class that provides the integration of client with load balancers.
| Field Summary |
|---|
| Fields inherited from class com.netflix.loadbalancer.LoadBalancerContext |
|---|
clientName, defaultRetryHandler, maxAutoRetries, maxAutoRetriesNextServer, okToRetryOnAllOperations, vipAddresses |
| Constructor Summary | |
|---|---|
AbstractLoadBalancerAwareClient(ILoadBalancer lb)
|
|
AbstractLoadBalancerAwareClient(ILoadBalancer lb,
com.netflix.client.config.IClientConfig clientConfig)
Delegate to LoadBalancerContext.initWithNiwsConfig(IClientConfig) |
|
| Method Summary | |
|---|---|
protected T |
executeOnSingleServer(S request,
com.netflix.client.config.IClientConfig requestConfig)
Execute the request on single server after the final URI is calculated. |
T |
executeWithLoadBalancer(S request)
|
T |
executeWithLoadBalancer(S request,
com.netflix.client.config.IClientConfig requestConfig)
This method should be used when the caller wants to dispatch the request to a server chosen by the load balancer, instead of specifying the server in the request's URI. |
abstract com.netflix.client.RequestSpecificRetryHandler |
getRequestSpecificRetryHandler(S request,
com.netflix.client.config.IClientConfig requestConfig)
|
protected boolean |
isCircuitBreakerException(java.lang.Throwable e)
Deprecated. |
protected boolean |
isRetriable(S request)
Deprecated. |
protected boolean |
isRetriableException(java.lang.Throwable e)
Deprecated. |
| Methods inherited from class com.netflix.loadbalancer.LoadBalancerExecutor |
|---|
create, create, create, create, execute, execute, retryWithSameServer |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.netflix.client.IClient |
|---|
execute |
| Methods inherited from interface com.netflix.client.IClientConfigAware |
|---|
initWithNiwsConfig |
| Constructor Detail |
|---|
public AbstractLoadBalancerAwareClient(ILoadBalancer lb)
public AbstractLoadBalancerAwareClient(ILoadBalancer lb,
com.netflix.client.config.IClientConfig clientConfig)
LoadBalancerContext.initWithNiwsConfig(IClientConfig)
clientConfig - | Method Detail |
|---|
@Deprecated protected boolean isCircuitBreakerException(java.lang.Throwable e)
AvailabilityFilteringRule, which is the default rule for load balancers.
@Deprecated protected boolean isRetriableException(java.lang.Throwable e)
protected T executeOnSingleServer(S request,
com.netflix.client.config.IClientConfig requestConfig)
throws com.netflix.client.ClientException
com.netflix.client.ClientException
public T executeWithLoadBalancer(S request)
throws com.netflix.client.ClientException
com.netflix.client.ClientException
public T executeWithLoadBalancer(S request,
com.netflix.client.config.IClientConfig requestConfig)
throws com.netflix.client.ClientException
LoadBalancerContext.reconstructURIWithServer(com.netflix.loadbalancer.Server, java.net.URI)
and then calls executeWithLoadBalancer(ClientRequest, com.netflix.client.config.IClientConfig).
request - request to be dispatched to a server chosen by the load balancer. The URI can be a partial
URI which does not contain the host name or the protocol.
com.netflix.client.ClientException
public abstract com.netflix.client.RequestSpecificRetryHandler getRequestSpecificRetryHandler(S request,
com.netflix.client.config.IClientConfig requestConfig)
@Deprecated protected boolean isRetriable(S request)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||