类 ServiceListResponse
- java.lang.Object
-
- com.alibaba.nacos.api.remote.response.Response
-
- com.alibaba.nacos.api.naming.remote.response.ServiceListResponse
-
-
字段概要
字段 修饰符和类型 字段 说明 private intcountprivate java.util.List<java.lang.String>serviceNames
-
构造器概要
构造器 限定符 构造器 说明 ServiceListResponse()privateServiceListResponse(int count, java.util.List<java.lang.String> serviceNames, java.lang.String message)
-
方法概要
所有方法 静态方法 实例方法 具体方法 修饰符和类型 方法 说明 static ServiceListResponsebuildFailResponse(java.lang.String message)Build fail response.static ServiceListResponsebuildSuccessResponse(int count, java.util.List<java.lang.String> serviceNames)intgetCount()java.util.List<java.lang.String>getServiceNames()voidsetCount(int count)voidsetServiceNames(java.util.List<java.lang.String> serviceNames)-
从类继承的方法 com.alibaba.nacos.api.remote.response.Response
getErrorCode, getMessage, getRequestId, getResultCode, isSuccess, setErrorCode, setErrorInfo, setMessage, setRequestId, setResultCode, toString
-
-
-
-
方法详细资料
-
buildSuccessResponse
public static ServiceListResponse buildSuccessResponse(int count, java.util.List<java.lang.String> serviceNames)
-
buildFailResponse
public static ServiceListResponse buildFailResponse(java.lang.String message)
Build fail response.- 参数:
message- error message- 返回:
- fail response
-
getCount
public int getCount()
-
setCount
public void setCount(int count)
-
getServiceNames
public java.util.List<java.lang.String> getServiceNames()
-
setServiceNames
public void setServiceNames(java.util.List<java.lang.String> serviceNames)
-
-