类 Response
- java.lang.Object
-
- com.alibaba.dubbo.remoting.exchange.Response
-
public class Response extends Object
Response
-
-
字段概要
字段 修饰符和类型 字段 说明 static byte
BAD_REQUEST
request format error.static byte
BAD_RESPONSE
response format error.static byte
CHANNEL_INACTIVE
channel inactive, directly return the unfinished requests.static byte
CLIENT_ERROR
internal server error.static byte
CLIENT_TIMEOUT
clien side timeout.static String
HEARTBEAT_EVENT
static byte
OK
ok.static String
READONLY_EVENT
static byte
SERVER_ERROR
internal server error.static byte
SERVER_THREADPOOL_EXHAUSTED_ERROR
server side threadpool exhausted and quick return.static byte
SERVER_TIMEOUT
server side timeout.static byte
SERVICE_ERROR
service error.static byte
SERVICE_NOT_FOUND
service not found.
-
方法概要
所有方法 实例方法 具体方法 已过时的方法 修饰符和类型 方法 说明 Object
getAttribute(String key)
String
getErrorMessage()
long
getId()
Object
getResult()
byte
getStatus()
String
getVersion()
boolean
isEvent()
boolean
isHeartbeat()
void
setAttribute(String key, Object value)
void
setErrorMessage(String msg)
void
setEvent(String event)
void
setHeartbeat(boolean isHeartbeat)
已过时。void
setId(long id)
void
setResult(Object msg)
void
setStatus(byte status)
void
setVersion(String version)
String
toString()
-
-
-
字段详细资料
-
HEARTBEAT_EVENT
public static final String HEARTBEAT_EVENT
-
OK
public static final byte OK
ok.- 另请参阅:
- 常量字段值
-
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)
-
-