public class ConsulServiceImporter extends Object implements ServiceImporter
Constructor and Description |
---|
ConsulServiceImporter() |
Modifier and Type | Method and Description |
---|---|
void |
start(Vertx vertx,
ServicePublisher publisher,
JsonObject configuration,
Future<Void> completion)
Starts the bridge.
|
void |
stop(Vertx vertx,
ServicePublisher publisher,
Future<Void> future)
Stops the bridge.
|
public void start(Vertx vertx, ServicePublisher publisher, JsonObject configuration, Future<Void> completion)
ServiceImporter
start
in interface ServiceImporter
vertx
- the vertx instancepublisher
- the service discovery instanceconfiguration
- the bridge configuration if anycompletion
- a future on which the bridge must report the completion of the startingpublic void stop(Vertx vertx, ServicePublisher publisher, Future<Void> future)
ServiceImporter
stop
in interface ServiceImporter
vertx
- the vertx instancepublisher
- the service discovery instancefuture
- the future on which the bridge must report the completion of the stopping processCopyright © 2016. All rights reserved.