public class ResponseCommand extends RpcCommand
| 构造器和说明 |
|---|
ResponseCommand() |
ResponseCommand(byte version,
byte type,
CommandCode code,
int id) |
ResponseCommand(CommandCode code) |
ResponseCommand(CommandCode code,
int id) |
ResponseCommand(int id) |
| 限定符和类型 | 方法和说明 |
|---|---|
Throwable |
getCause()
Getter method for property cause.
|
InetSocketAddress |
getResponseHost()
Getter method for property responseHost.
|
ResponseStatus |
getResponseStatus()
Getter method for property responseStatus.
|
long |
getResponseTimeMillis()
Getter method for property responseTimeMillis.
|
void |
setCause(Throwable cause)
Setter method for property cause.
|
void |
setResponseHost(InetSocketAddress responseHost)
Setter method for property responseHost.
|
void |
setResponseStatus(ResponseStatus responseStatus)
Setter method for property responseStatus.
|
void |
setResponseTimeMillis(long responseTimeMillis)
Setter method for property responseTimeMillis.
|
deserialize, deserialize, deserializeClazz, deserializeContent, deserializeHeader, getClazz, getClazzLength, getCmdCode, getContent, getContentLength, getHeader, getHeaderLength, getId, getInvokeContext, getProtocolCode, getProtocolSwitch, getSerializer, getType, getVersion, serialize, serializeClazz, serializeContent, serializeHeader, setClazz, setCmdCode, setContent, setHeader, setId, setInvokeContext, setProtocolSwitch, setSerializer, setType, setVersionpublic ResponseCommand()
public ResponseCommand(CommandCode code)
public ResponseCommand(int id)
public ResponseCommand(CommandCode code, int id)
public ResponseCommand(byte version,
byte type,
CommandCode code,
int id)
public long getResponseTimeMillis()
public void setResponseTimeMillis(long responseTimeMillis)
responseTimeMillis - value to be assigned to property responseTimeMillispublic InetSocketAddress getResponseHost()
public void setResponseHost(InetSocketAddress responseHost)
responseHost - value to be assigned to property responseHostpublic ResponseStatus getResponseStatus()
public void setResponseStatus(ResponseStatus responseStatus)
responseStatus - value to be assigned to property responseStatuspublic Throwable getCause()
public void setCause(Throwable cause)
cause - value to be assigned to property causeCopyright © 2020. All rights reserved.