Class ZookeeperServiceImporter

java.lang.Object
io.vertx.servicediscovery.zookeeper.ZookeeperServiceImporter
All Implemented Interfaces:
ServiceImporter, org.apache.curator.framework.recipes.cache.TreeCacheListener

public class ZookeeperServiceImporter extends Object implements ServiceImporter, org.apache.curator.framework.recipes.cache.TreeCacheListener
A service importer retrieving services from Zookeeper.
Author:
Clement Escoffier
  • Constructor Details

    • ZookeeperServiceImporter

      public ZookeeperServiceImporter()
  • Method Details

    • start

      public void start(Vertx vertx, ServicePublisher publisher, JsonObject configuration, Promise<Void> future)
      Description copied from interface: ServiceImporter
      Starts the importer.
      Specified by:
      start in interface ServiceImporter
      Parameters:
      vertx - the vertx instance
      publisher - the service publisher instance
      configuration - the bridge configuration if any
      future - a future on which the bridge must report the completion of the starting
    • close

      public void close(Handler<Void> closeHandler)
      Description copied from interface: ServiceImporter
      Closes the importer
      Specified by:
      close in interface ServiceImporter
      Parameters:
      closeHandler - the handle to be notified when importer is closed, may be null
    • childEvent

      public void childEvent(org.apache.curator.framework.CuratorFramework curatorFramework, org.apache.curator.framework.recipes.cache.TreeCacheEvent treeCacheEvent)
      Specified by:
      childEvent in interface org.apache.curator.framework.recipes.cache.TreeCacheListener