@FunctionalInterface public interface LoadBalancer
| Modifier and Type | Method and Description | 
|---|---|
static LoadBalancer | 
empty()  | 
static LoadBalancer | 
fixed(URI uri)
A  
LoadBalancer that does no load balancing and always hits the given URI. | 
static LoadBalancer | 
fixed(URL url)
Deprecated. 
 
Use  
fixed(URI) instead | 
default Optional<String> | 
getContextPath()  | 
default Publisher<ServiceInstance> | 
select()  | 
Publisher<ServiceInstance> | 
select(Object discriminator)  | 
Publisher<ServiceInstance> select(@Nullable Object discriminator)
discriminator - An object used to discriminate the server to select. Usually the service IDServiceInstancedefault Optional<String> getContextPath()
default Publisher<ServiceInstance> select()
ServiceInstance@Deprecated static LoadBalancer fixed(URL url)
fixed(URI) insteadLoadBalancer that does no load balancing and always hits the given URL.url - The URLLoadBalancerstatic LoadBalancer fixed(URI uri)
LoadBalancer that does no load balancing and always hits the given URI.uri - The URILoadBalancerstatic LoadBalancer empty()