Interface ServiceImporter

All Known Implementing Classes:
ConsulServiceImporter, DockerLinksServiceImporter, KubernetesServiceImporter, ZookeeperServiceImporter

public interface ServiceImporter
The service importer allows integrate other discovery technologies with the Vert.x service discovery. It maps entries from another technology to a Record and maps Record to a publication in this other technology. The importer is one side of a service discovery bridge.
Author:
Clement Escoffier
  • Method Details

    • start

      void start(Vertx vertx, ServicePublisher publisher, JsonObject configuration, Promise<Void> future)
      Starts the importer.
      Parameters:
      vertx - the vertx instance
      publisher - the service publisher instance
      configuration - the bridge configuration if any
      future - a future on which the bridge must report the completion of the starting
    • close

      default void close(Handler<Void> closeHandler)
      Closes the importer
      Parameters:
      closeHandler - the handle to be notified when importer is closed, may be null