public class ZookeeperBackendService extends Object implements ServiceDiscoveryBackend, org.apache.curator.framework.state.ConnectionStateListener
Constructor and Description |
---|
ZookeeperBackendService() |
Modifier and Type | Method and Description |
---|---|
void |
getRecord(String uuid,
io.vertx.core.Handler<io.vertx.core.AsyncResult<Record>> handler) |
void |
getRecords(io.vertx.core.Handler<io.vertx.core.AsyncResult<List<Record>>> resultHandler) |
void |
init(io.vertx.core.Vertx vertx,
io.vertx.core.json.JsonObject configuration) |
void |
remove(Record record,
io.vertx.core.Handler<io.vertx.core.AsyncResult<Record>> resultHandler) |
void |
remove(String uuid,
io.vertx.core.Handler<io.vertx.core.AsyncResult<Record>> resultHandler) |
void |
stateChanged(org.apache.curator.framework.CuratorFramework client,
org.apache.curator.framework.state.ConnectionState newState) |
void |
store(Record record,
io.vertx.core.Handler<io.vertx.core.AsyncResult<Record>> resultHandler) |
void |
update(Record record,
io.vertx.core.Handler<io.vertx.core.AsyncResult<Void>> resultHandler) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
name
public void init(io.vertx.core.Vertx vertx, io.vertx.core.json.JsonObject configuration)
init
in interface ServiceDiscoveryBackend
public void store(Record record, io.vertx.core.Handler<io.vertx.core.AsyncResult<Record>> resultHandler)
store
in interface ServiceDiscoveryBackend
public void remove(Record record, io.vertx.core.Handler<io.vertx.core.AsyncResult<Record>> resultHandler)
remove
in interface ServiceDiscoveryBackend
public void remove(String uuid, io.vertx.core.Handler<io.vertx.core.AsyncResult<Record>> resultHandler)
remove
in interface ServiceDiscoveryBackend
public void update(Record record, io.vertx.core.Handler<io.vertx.core.AsyncResult<Void>> resultHandler)
update
in interface ServiceDiscoveryBackend
public void getRecords(io.vertx.core.Handler<io.vertx.core.AsyncResult<List<Record>>> resultHandler)
getRecords
in interface ServiceDiscoveryBackend
public void getRecord(String uuid, io.vertx.core.Handler<io.vertx.core.AsyncResult<Record>> handler)
getRecord
in interface ServiceDiscoveryBackend
public void stateChanged(org.apache.curator.framework.CuratorFramework client, org.apache.curator.framework.state.ConnectionState newState)
stateChanged
in interface org.apache.curator.framework.state.ConnectionStateListener
Copyright © 2018. All rights reserved.