public abstract class LoadBalancerObservableCommand<T> extends LoadBalancerRetrySameServerCommand<T> implements LoadBalancerObservable<T>
LoadBalancerObservable.call(com.netflix.loadbalancer.Server) methodExecutionListener if anyRetryHandlerLoadBalancerStatsexecutionInfo, listenerInvoker, loadBalancerContext| Constructor and Description |
|---|
LoadBalancerObservableCommand(LoadBalancerContext loadBalancerContext) |
LoadBalancerObservableCommand(LoadBalancerContext loadBalancerContext,
com.netflix.client.RetryHandler retryHandler) |
LoadBalancerObservableCommand(LoadBalancerContext loadBalancerContext,
com.netflix.client.RetryHandler retryHandler,
ExecutionContextListenerInvoker<?,T> listenerInvoker) |
LoadBalancerObservableCommand(LoadBalancerContext loadBalancerContext,
com.netflix.client.RetryHandler retryHandler,
java.net.URI loadBalancerURI,
java.lang.Object loadBalancerKey,
ExecutionContextListenerInvoker<?,T> listenerInvoker) |
| Modifier and Type | Method and Description |
|---|---|
rx.Observable<T> |
toObservable()
Create an
Observable that once subscribed execute network call asynchronously with a server chosen by load balancer. |
getRetryHandler, retryWithSameServer, retryWithSameServerclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcallpublic LoadBalancerObservableCommand(LoadBalancerContext loadBalancerContext)
public LoadBalancerObservableCommand(LoadBalancerContext loadBalancerContext, com.netflix.client.RetryHandler retryHandler)
public LoadBalancerObservableCommand(LoadBalancerContext loadBalancerContext, com.netflix.client.RetryHandler retryHandler, ExecutionContextListenerInvoker<?,T> listenerInvoker)
public LoadBalancerObservableCommand(LoadBalancerContext loadBalancerContext, com.netflix.client.RetryHandler retryHandler, java.net.URI loadBalancerURI, java.lang.Object loadBalancerKey, ExecutionContextListenerInvoker<?,T> listenerInvoker)
public rx.Observable<T> toObservable()
Observable that once subscribed execute network call asynchronously with a server chosen by load balancer.
If there are any errors that are indicated as retriable by the RetryHandler, they will be consumed internally by the
function and will not be observed by the Observer subscribed to the returned Observable. If number of retries has
exceeds the maximal allowed, a final error will be emitted by the returned Observable. Otherwise, the first successful
result during execution and retries will be emitted.