Files
spring-boot-rest/apache-zookeeper/src/main/java/com/baeldung/zookeeper/manager/ZKManager.java
Nikhil Khatwani c404d78081 Changes for BAEL-1532 (#3704)
* Changes for BAEL1532

* Changes for BAEL_1532
2018-02-24 20:50:26 +01:00

36 lines
883 B
Java

package com.baeldung.zookeeper.manager;
import org.apache.zookeeper.KeeperException;
public interface ZKManager {
/**
* Create a Znode and save some data
*
* @param path
* @param data
* @throws KeeperException
* @throws InterruptedException
*/
public void create(String path, byte[] data) throws KeeperException, InterruptedException;
/**
* Get ZNode Data
*
* @param path
* @param boolean watchFlag
* @throws KeeperException
* @throws InterruptedException
*/
public Object getZNodeData(String path, boolean watchFlag);
/**
* Update the ZNode Data
*
* @param path
* @param data
* @throws KeeperException
* @throws InterruptedException
*/
public void update(String path, byte[] data) throws KeeperException, InterruptedException, KeeperException;
}