Class Response
java.lang.Object
org.apache.dubbo.remoting.exchange.Response
- Direct Known Subclasses:
HeartBeatResponse
Response
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final byterequest format error.static final byteresponse format error.static final bytechannel inactive, directly return the unfinished requests.static final byteinternal server error.static final byteclient side timeout.static final byteok.static final byteserialization errorstatic final byteinternal server error.static final byteserver side threadpool exhausted and quick return.static final byteserver side timeout.static final byteservice error.static final byteservice not found. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlonggetId()bytebooleanisEvent()booleanvoidsetErrorMessage(String msg) voidsetEvent(boolean mEvent) voidvoidsetHeartbeat(boolean isHeartbeat) Deprecated.voidsetId(long id) voidvoidsetStatus(byte status) voidsetVersion(String version) toString()
-
Field Details
-
OK
public static final byte OKok.- See Also:
-
SERIALIZATION_ERROR
public static final byte SERIALIZATION_ERRORserialization error- See Also:
-
CLIENT_TIMEOUT
public static final byte CLIENT_TIMEOUTclient side timeout.- See Also:
-
SERVER_TIMEOUT
public static final byte SERVER_TIMEOUTserver side timeout.- See Also:
-
CHANNEL_INACTIVE
public static final byte CHANNEL_INACTIVEchannel inactive, directly return the unfinished requests.- See Also:
-
BAD_REQUEST
public static final byte BAD_REQUESTrequest format error.- See Also:
-
BAD_RESPONSE
public static final byte BAD_RESPONSEresponse format error.- See Also:
-
SERVICE_NOT_FOUND
public static final byte SERVICE_NOT_FOUNDservice not found.- See Also:
-
SERVICE_ERROR
public static final byte SERVICE_ERRORservice error.- See Also:
-
SERVER_ERROR
public static final byte SERVER_ERRORinternal server error.- See Also:
-
CLIENT_ERROR
public static final byte CLIENT_ERRORinternal server error.- See Also:
-
SERVER_THREADPOOL_EXHAUSTED_ERROR
public static final byte SERVER_THREADPOOL_EXHAUSTED_ERRORserver side threadpool exhausted and quick return.- See Also:
-
-
Constructor Details
-
Response
public Response() -
Response
public Response(long id) -
Response
-
-
Method Details
-
getId
public long getId() -
setId
public void setId(long id) -
getVersion
-
setVersion
-
getStatus
public byte getStatus() -
setStatus
public void setStatus(byte status) -
isEvent
public boolean isEvent() -
setEvent
-
setEvent
public void setEvent(boolean mEvent) -
isHeartbeat
public boolean isHeartbeat() -
setHeartbeat
Deprecated. -
getResult
-
setResult
-
getErrorMessage
-
setErrorMessage
-
toString
-