public class FixedLoadBalancer extends java.lang.Object implements LoadBalancer
LoadBalancer
that resolves a fixed URI.Constructor and Description |
---|
FixedLoadBalancer(java.net.URI uri)
Constructs a new FixedLoadBalancer.
|
FixedLoadBalancer(java.net.URL url)
Deprecated.
Use
FixedLoadBalancer(URI) instead |
Modifier and Type | Method and Description |
---|---|
java.util.Optional<java.lang.String> |
getContextPath() |
java.net.URI |
getUri() |
java.net.URL |
getUrl()
Deprecated.
Use
getUri() instead |
org.reactivestreams.Publisher<ServiceInstance> |
select(java.lang.Object discriminator) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
empty, fixed, fixed, select
@Deprecated public FixedLoadBalancer(java.net.URL url)
FixedLoadBalancer(URI)
insteadurl
- The URL to fix topublic FixedLoadBalancer(java.net.URI uri)
uri
- The URI 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
@Deprecated public java.net.URL getUrl()
getUri()
insteadLoadBalancer
public java.net.URI getUri()
LoadBalancer
public java.util.Optional<java.lang.String> getContextPath()
getContextPath
in interface LoadBalancer