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 and Description
    `ConsulServiceImporter()`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `close(Handler<Void> completionHandler)` Close the importer
    `void` | `start(Vertx vertx, ServicePublisher publisher, JsonObject configuration, Future<Void> completion)` Starts the importer.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

    - ### Methods inherited from interface io.vertx.servicediscovery.spi.ServiceImporter

      `stop`

- - ### Constructor Detail

    - #### ConsulServiceImporter

          public ConsulServiceImporter()

  - ### Method Detail

    - #### start

          public void start(Vertx vertx,
                            ServicePublisher publisher,
                            JsonObject configuration,
                            Future<Void> completion)

      Description copied from interface: `ServiceImporter`
      Starts the importer.
      Specified by:
        `start` in interface `ServiceImporter`
      Parameters:
        `vertx` - the vertx instance
        `publisher` - the service discovery instance
        `configuration` - the bridge configuration if any
        `completion` - 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`
      Close the importer
      Specified by:
        `close` in interface `ServiceImporter`
      Parameters:
        `completionHandler` - the handle to be notified when importer is closed, may be `null`

Copyright © 2016. All rights reserved.