Package io.vertx.servicediscovery.consul
Class ConsulServiceImporter
- java.lang.Object
-
- io.vertx.servicediscovery.consul.ConsulServiceImporter
-
- All Implemented Interfaces:
ServiceImporter
public class ConsulServiceImporter extends Object implements ServiceImporter
A discovery bridge importing services from Consul.- Author:
- Clement Escoffier
-
-
Constructor Summary
Constructors Constructor Description ConsulServiceImporter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close(Handler<Void> completionHandler)
Closes the importervoid
start(Vertx vertx, ServicePublisher publisher, JsonObject configuration, Promise<Void> completion)
Starts the importer.
-
-
-
Method Detail
-
start
public void start(Vertx vertx, ServicePublisher publisher, JsonObject configuration, Promise<Void> completion)
Description copied from interface:ServiceImporter
Starts the importer.- Specified by:
start
in 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
public void close(Handler<Void> completionHandler)
Description copied from interface:ServiceImporter
Closes the importer- Specified by:
close
in interfaceServiceImporter
- Parameters:
completionHandler
- the handle to be notified when importer is closed, may benull
-
-