类 ServiceListResponse
java.lang.Object
com.alibaba.nacos.api.remote.response.Response
com.alibaba.nacos.api.naming.remote.response.ServiceListResponse
Service list response.
- 作者:
- xiweng.yy
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明static ServiceListResponsebuildFailResponse(String message)Build fail response.static ServiceListResponsebuildSuccessResponse(int count, List<String> serviceNames)intgetCount()voidsetCount(int count)voidsetServiceNames(List<String> serviceNames)从类继承的方法 com.alibaba.nacos.api.remote.response.Response
getErrorCode, getMessage, getRequestId, getResultCode, isSuccess, setErrorCode, setErrorInfo, setMessage, setRequestId, setResultCode, toString
-
构造器详细资料
-
ServiceListResponse
public ServiceListResponse()
-
-
方法详细资料
-
buildSuccessResponse
-
buildFailResponse
Build fail response.- 参数:
message- error message- 返回:
- fail response
-
getCount
public int getCount() -
setCount
public void setCount(int count) -
getServiceNames
-
setServiceNames
-