类 QueryServiceResponse

java.lang.Object
com.alibaba.nacos.api.remote.response.Response
com.alibaba.nacos.api.naming.remote.response.QueryServiceResponse

public class QueryServiceResponse extends Response
Nacos naming query request.
作者:
xiweng.yy
  • 构造器详细资料

    • QueryServiceResponse

      public QueryServiceResponse()
  • 方法详细资料

    • buildSuccessResponse

      public static QueryServiceResponse buildSuccessResponse(ServiceInfo serviceInfo)
      Build Success response.
      参数:
      serviceInfo - service info
      返回:
      service query response
    • buildFailResponse

      public static QueryServiceResponse buildFailResponse(String message)
      Build fail response.
      参数:
      message - message
      返回:
      service query response
    • getServiceInfo

      public ServiceInfo getServiceInfo()
    • setServiceInfo

      public void setServiceInfo(ServiceInfo serviceInfo)