Class ConsulServiceImporter
java.lang.Object
io.vertx.servicediscovery.consul.ConsulServiceImporter
- All Implemented Interfaces:
ServiceImporter
A discovery bridge importing services from Consul.
- Author:
- Clement Escoffier
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidCloses the importervoidstart(Vertx vertx, ServicePublisher publisher, JsonObject configuration, Promise<Void> completion) Starts the importer.
-
Constructor Details
-
ConsulServiceImporter
public ConsulServiceImporter()
-
-
Method Details
-
start
public void start(Vertx vertx, ServicePublisher publisher, JsonObject configuration, Promise<Void> completion) Description copied from interface:ServiceImporterStarts the importer.- Specified by:
startin interfaceServiceImporter- Parameters:
vertx- the vertx instancepublisher- the service publisher instanceconfiguration- the bridge configuration if anycompletion- a future on which the bridge must report the completion of the starting
-
close
Description copied from interface:ServiceImporterCloses the importer- Specified by:
closein interfaceServiceImporter- Parameters:
completionHandler- the handle to be notified when importer is closed, may benull
-