Changes for BAEL-1532 (#3704)

* Changes for BAEL1532

* Changes for BAEL_1532
This commit is contained in:
Nikhil Khatwani
2018-02-25 01:20:26 +05:30
committed by Grzegorz Piwowarek
parent 83b0771962
commit c404d78081
4 changed files with 156 additions and 0 deletions

View File

@@ -0,0 +1,35 @@
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;
}