com.englishtown.vertx.zookeeper.ZooKeeperOperation Maven / Gradle / Ivy
package com.englishtown.vertx.zookeeper;
import org.apache.curator.framework.api.CuratorEvent;
import io.vertx.core.AsyncResult;
import io.vertx.core.Handler;
/**
* An executable zookeeper operation
*/
public interface ZooKeeperOperation {
/**
* Execute the operation with the provided client and callback handler
*
* @param client zookeeper client
* @param handler callback handler
* @throws Exception
*/
void execute(ZooKeeperClient client, Handler> handler) throws Exception;
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy