public class ZookeeperServiceImporter extends Object implements ServiceImporter, org.apache.curator.framework.recipes.cache.TreeCacheListener
Constructor and Description |
---|
ZookeeperServiceImporter() |
Modifier and Type | Method and Description |
---|---|
void |
childEvent(org.apache.curator.framework.CuratorFramework curatorFramework,
org.apache.curator.framework.recipes.cache.TreeCacheEvent treeCacheEvent) |
void |
close(Handler<Void> closeHandler)
Closes the importer
|
void |
start(Vertx vertx,
ServicePublisher publisher,
JsonObject configuration,
Promise<Void> future)
Starts the importer.
|
public void start(Vertx vertx, ServicePublisher publisher, JsonObject configuration, Promise<Void> future)
ServiceImporter
start
in interface ServiceImporter
vertx
- the vertx instancepublisher
- the service publisher instanceconfiguration
- the bridge configuration if anyfuture
- a future on which the bridge must report the completion of the startingpublic void close(Handler<Void> closeHandler)
ServiceImporter
close
in interface ServiceImporter
closeHandler
- the handle to be notified when importer is closed, may be null
public void childEvent(org.apache.curator.framework.CuratorFramework curatorFramework, org.apache.curator.framework.recipes.cache.TreeCacheEvent treeCacheEvent)
childEvent
in interface org.apache.curator.framework.recipes.cache.TreeCacheListener
Copyright © 2023 Eclipse. All rights reserved.