@FunctionalInterface
public interface LoadBalancer
| Modifier and Type | Method and Description |
|---|---|
static LoadBalancer |
empty() |
static LoadBalancer |
fixed(java.net.URL url)
A
LoadBalancer that does no load balancing and always hits the given URL. |
default java.util.Optional<java.lang.String> |
getContextPath() |
default org.reactivestreams.Publisher<ServiceInstance> |
select() |
org.reactivestreams.Publisher<ServiceInstance> |
select(java.lang.Object discriminator) |
org.reactivestreams.Publisher<ServiceInstance> select(@Nullable java.lang.Object discriminator)
discriminator - An object used to discriminate the server to select. Usually the service IDServiceInstancedefault java.util.Optional<java.lang.String> getContextPath()
default org.reactivestreams.Publisher<ServiceInstance> select()
ServiceInstancestatic LoadBalancer fixed(java.net.URL url)
LoadBalancer that does no load balancing and always hits the given URL.url - The URLLoadBalancerstatic LoadBalancer empty()