public class FixedLoadBalancer extends java.lang.Object implements LoadBalancer
LoadBalancer that resolves a fixed URL.| Constructor and Description |
|---|
FixedLoadBalancer(java.net.URL url)
Constructs a new FixedLoadBalancer.
|
| Modifier and Type | Method and Description |
|---|---|
java.util.Optional<java.lang.String> |
getContextPath() |
java.net.URL |
getUrl() |
org.reactivestreams.Publisher<ServiceInstance> |
select(java.lang.Object discriminator) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitempty, fixed, selectpublic FixedLoadBalancer(java.net.URL url)
url - The URL to fix topublic org.reactivestreams.Publisher<ServiceInstance> select(@Nullable java.lang.Object discriminator)
select in interface LoadBalancerdiscriminator - An object used to discriminate the server to select. Usually the service IDServiceInstancepublic java.net.URL getUrl()
LoadBalancerpublic java.util.Optional<java.lang.String> getContextPath()
getContextPath in interface LoadBalancer