Class FixedLoadBalancer

    • Constructor Detail

      • FixedLoadBalancer

        @Deprecated
        public FixedLoadBalancer​(java.net.URL url)
        Deprecated.
        Constructs a new FixedLoadBalancer.
        Parameters:
        url - The URL to fix to
      • FixedLoadBalancer

        public FixedLoadBalancer​(java.net.URI uri)
        Constructs a new FixedLoadBalancer.
        Parameters:
        uri - The URI to fix to
    • Method Detail

      • select

        public org.reactivestreams.Publisher<io.micronaut.discovery.ServiceInstance> select​(@Nullable
                                                                                            java.lang.Object discriminator)
        Specified by:
        select in interface LoadBalancer
        Parameters:
        discriminator - An object used to discriminate the server to select. Usually the service ID
        Returns:
        The selected ServiceInstance
      • getUrl

        @Deprecated
        public java.net.URL getUrl()
        Deprecated.
        Use getUri() instead
        Returns:
        The URL of the LoadBalancer
      • getUri

        public java.net.URI getUri()
        Returns:
        The URI of the LoadBalancer
      • getContextPath

        public java.util.Optional<java.lang.String> getContextPath()
        Specified by:
        getContextPath in interface LoadBalancer
        Returns:
        The context path to use for requests.