类 Response


  • public class Response
    extends Object
    Response
    • 字段详细资料

      • HEARTBEAT_EVENT

        public static final String HEARTBEAT_EVENT
      • CLIENT_TIMEOUT

        public static final byte CLIENT_TIMEOUT
        clien side timeout.
        另请参阅:
        常量字段值
      • SERVER_TIMEOUT

        public static final byte SERVER_TIMEOUT
        server side timeout.
        另请参阅:
        常量字段值
      • CHANNEL_INACTIVE

        public static final byte CHANNEL_INACTIVE
        channel inactive, directly return the unfinished requests.
        另请参阅:
        常量字段值
      • BAD_REQUEST

        public static final byte BAD_REQUEST
        request format error.
        另请参阅:
        常量字段值
      • BAD_RESPONSE

        public static final byte BAD_RESPONSE
        response format error.
        另请参阅:
        常量字段值
      • SERVICE_NOT_FOUND

        public static final byte SERVICE_NOT_FOUND
        service not found.
        另请参阅:
        常量字段值
      • SERVICE_ERROR

        public static final byte SERVICE_ERROR
        service error.
        另请参阅:
        常量字段值
      • SERVER_ERROR

        public static final byte SERVER_ERROR
        internal server error.
        另请参阅:
        常量字段值
      • CLIENT_ERROR

        public static final byte CLIENT_ERROR
        internal server error.
        另请参阅:
        常量字段值
      • SERVER_THREADPOOL_EXHAUSTED_ERROR

        public static final byte SERVER_THREADPOOL_EXHAUSTED_ERROR
        server side threadpool exhausted and quick return.
        另请参阅:
        常量字段值
    • 构造器详细资料

      • Response

        public Response()
      • Response

        public Response(long id)
      • Response

        public Response(long id,
                        String version)
    • 方法详细资料

      • getId

        public long getId()
      • setId

        public void setId(long id)
      • getVersion

        public String getVersion()
      • setVersion

        public void setVersion(String version)
      • getStatus

        public byte getStatus()
      • setStatus

        public void setStatus(byte status)
      • isEvent

        public boolean isEvent()
      • setEvent

        public void setEvent(String event)
      • isHeartbeat

        public boolean isHeartbeat()
      • setHeartbeat

        @Deprecated
        public void setHeartbeat(boolean isHeartbeat)
        已过时。
      • getResult

        public Object getResult()
      • setResult

        public void setResult(Object msg)
      • getErrorMessage

        public String getErrorMessage()
      • setErrorMessage

        public void setErrorMessage(String msg)
      • setAttribute

        public void setAttribute(String key,
                                 Object value)