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, wait
empty, fixed, select
public FixedLoadBalancer(java.net.URL url)
url
- The URL to fix topublic org.reactivestreams.Publisher<ServiceInstance> select(@Nullable java.lang.Object discriminator)
select
in interface LoadBalancer
discriminator
- An object used to discriminate the server to select. Usually the service IDServiceInstance
public java.net.URL getUrl()
LoadBalancer
public java.util.Optional<java.lang.String> getContextPath()
getContextPath
in interface LoadBalancer