Package io.vertx.servicediscovery.spi
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 aRecord
and mapsRecord
to a publication in this other technology. The importer is one side of a service discovery bridge.- Author:
- Clement Escoffier
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default void
close(Handler<Void> closeHandler)
Closes the importervoid
start(Vertx vertx, ServicePublisher publisher, JsonObject configuration, Promise<Void> future)
Starts the importer.
-
-
-
Method Detail
-
start
void start(Vertx vertx, ServicePublisher publisher, JsonObject configuration, Promise<Void> future)
Starts the importer.- Parameters:
vertx
- the vertx instancepublisher
- the service publisher instanceconfiguration
- the bridge configuration if anyfuture
- a future on which the bridge must report the completion of the starting
-
-