public class FixedLoadBalancer extends Object implements LoadBalancer
LoadBalancer
that resolves a fixed URL.Constructor and Description |
---|
FixedLoadBalancer(URL url)
Constructs a new FixedLoadBalancer.
|
Modifier and Type | Method and Description |
---|---|
URL |
getUrl() |
Publisher<ServiceInstance> |
select(Object discriminator) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
empty, fixed, select
public FixedLoadBalancer(URL url)
url
- The URL to fix topublic Publisher<ServiceInstance> select(@Nullable Object discriminator)
select
in interface LoadBalancer
discriminator
- An object used to discriminate the server to select. Usually the service IDServiceInstance
public URL getUrl()
LoadBalancer