feature(zookeeper-query): 增加 zookeeper 查询模块
包含查询路径存在、锁存在、获取节点数据的能力
This commit is contained in:
@@ -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);
|
||||
}
|
||||
Reference in New Issue
Block a user