Interface ServiceResolverClient

All Superinterfaces:
EndpointResolver

public interface ServiceResolverClient extends EndpointResolver
Address lookup implementing service discovery and load balancing.
  • Method Details

    • create

      static ServiceResolverClient create(Vertx vertx, ServiceResolverOptions options)
      Create a new service resolver client.
      Parameters:
      vertx - the vertx instance
      options - the resolver options
      Returns:
      the service resolver client
    • create

      static ServiceResolverClient create(Vertx vertx, LoadBalancer loadBalancer, ServiceResolverOptions options)
      Create a new service resolver client.
      Parameters:
      vertx - the vertx instance
      loadBalancer - the load balancer
      options - the resolver options
      Returns:
      the service resolver client
    • resolveEndpoint

      Future<Endpoint> resolveEndpoint(ServiceAddress address)
    • close

      Future<Void> close()
      Close the client and release the resources.
      Returns:
      a future notified when the resources are disposed