类 Response

java.lang.Object
com.alibaba.nacos.api.remote.response.Response
直接已知子类:
ClientConfigMetricResponse, ClientDetectionResponse, ConfigChangeBatchListenResponse, ConfigChangeClusterSyncResponse, ConfigChangeNotifyResponse, ConfigPublishResponse, ConfigQueryResponse, ConfigRemoveResponse, ConnectResetResponse, ErrorResponse, HealthCheckResponse, InstanceResponse, NotifySubscriberResponse, QueryServiceResponse, ServerCheckResponse, ServerLoaderInfoResponse, ServerReloadResponse, ServiceListResponse, SubscribeServiceResponse

public abstract class Response extends Object
abstract response model via rpc channel.
版本:
$Id: Response.java, v 0.1 2020年07月13日 6:03 PM liuzunfei Exp $
作者:
liuzunfei
  • 构造器详细资料

    • Response

      public Response()
  • 方法详细资料

    • getRequestId

      public String getRequestId()
      Getter method for property requestId.
      返回:
      property value of requestId
    • setRequestId

      public void setRequestId(String requestId)
      Setter method for property requestId.
      参数:
      requestId - value to be assigned to property requestId
    • isSuccess

      public boolean isSuccess()
      Check Response is Successed.
      返回:
      success or not.
    • getResultCode

      public int getResultCode()
      Getter method for property resultCode.
      返回:
      property value of resultCode
    • setResultCode

      public void setResultCode(int resultCode)
      Setter method for property resultCode.
      参数:
      resultCode - value to be assigned to property resultCode
    • getMessage

      public String getMessage()
      Getter method for property message.
      返回:
      property value of message
    • setMessage

      public void setMessage(String message)
      Setter method for property message.
      参数:
      message - value to be assigned to property message
    • getErrorCode

      public int getErrorCode()
      Getter method for property errorCode.
      返回:
      property value of errorCode
    • setErrorCode

      public void setErrorCode(int errorCode)
      Setter method for property errorCode.
      参数:
      errorCode - value to be assigned to property errorCode
    • setErrorInfo

      public void setErrorInfo(int errorCode, String errorMsg)
    • toString

      public String toString()
      覆盖:
      toString 在类中 Object