public class LoadBalancerCommand<T>
extends java.lang.Object
#call(com.netflix.loadbalancer.Server) methodExecutionListener if anyRetryHandlerLoadBalancerStats| Modifier and Type | Class and Description |
|---|---|
static class |
LoadBalancerCommand.Builder<T> |
| Modifier and Type | Method and Description |
|---|---|
static <T> LoadBalancerCommand.Builder<T> |
builder() |
rx.Observable<T> |
submit(ServerOperation<T> operation)
Create an
Observable that once subscribed execute network call asynchronously with a server chosen by load balancer. |
public static <T> LoadBalancerCommand.Builder<T> builder()
public rx.Observable<T> submit(ServerOperation<T> operation)
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.