All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.ltsopensource.zookeeper.ZkClient Maven / Gradle / Ivy

package com.github.ltsopensource.zookeeper;

import java.util.List;

/**
 * @author Robert HG ([email protected]) on 7/8/14.
 */
public interface ZkClient {

    String create(String path, boolean ephemeral, boolean sequential);

    String create(String path, Object data, boolean ephemeral, boolean sequential);

    boolean delete(String path);

    boolean exists(String path);

     T getData(String path);

    void setData(String path, Object data);

    List getChildren(String path);

    List addChildListener(String path, ChildListener listener);

    void removeChildListener(String path, ChildListener listener);

    void addDataListener(String path, DataListener listener);

    void removeDataListener(String path, DataListener listener);

    void addStateListener(StateListener listener);

    void removeStateListener(StateListener listener);

    boolean isConnected();

    void close();

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy