feature(zookeeper-query): 增加 zookeeper 查询模块

包含查询路径存在、锁存在、获取节点数据的能力
This commit is contained in:
2023-05-14 00:08:11 +08:00
parent ee90857b06
commit 93456ddd78
9 changed files with 803 additions and 0 deletions

View File

@@ -0,0 +1,23 @@
package com.lanyuanxiaoyao.service.forest.service;
import com.dtflys.forest.annotation.BaseRequest;
import com.dtflys.forest.annotation.Get;
import com.dtflys.forest.annotation.Query;
/**
* Zookeeper 查询
*
* @author lanyuanxiaoyao
* @date 2023-05-13
*/
@BaseRequest(baseURL = "http://service-zookeeper-query")
public interface ZookeeperService {
@Get("/exists_path")
Boolean existsPath(@Query("path") String path);
@Get("/exists_lock")
Boolean existsLock(@Query("path") String path);
@Get("/get_data")
String getData(@Query("path") String path);
}