public interface Response
| 限定符和类型 | 方法和说明 |
|---|---|
io.netty.buffer.ByteBuf |
getBinaryAttachment() |
int |
getCompressType() |
long |
getCorrelationId()
used to find RpcFuture, application can not set it.
|
Throwable |
getException() |
Map<String,Object> |
getKvAttachment() |
long |
getLogId()
used to identify request for application, application can set it.
|
NSHead |
getNsHead() |
Object |
getResult() |
RpcFuture |
getRpcFuture() |
RpcMethodInfo |
getRpcMethodInfo() |
SPHead |
getSpHead() |
void |
reset() |
void |
setBinaryAttachment(io.netty.buffer.ByteBuf binaryAttachment) |
void |
setCompressType(int compressType) |
void |
setCorrelationId(long correlationId) |
void |
setException(Throwable exception) |
void |
setKvAttachment(Map<String,Object> kvAttachment) |
void |
setLogId(long logId) |
void |
setNsHead(NSHead nsHead) |
void |
setResult(Object result) |
void |
setRpcFuture(RpcFuture rpcFuture) |
void |
setRpcMethodInfo(RpcMethodInfo rpcMethodInfo) |
Object getResult()
void setResult(Object result)
long getCorrelationId()
void setCorrelationId(long correlationId)
long getLogId()
void setLogId(long logId)
Throwable getException()
NSHead getNsHead()
SPHead getSpHead()
void setNsHead(NSHead nsHead)
void setException(Throwable exception)
RpcMethodInfo getRpcMethodInfo()
void setRpcMethodInfo(RpcMethodInfo rpcMethodInfo)
RpcFuture getRpcFuture()
void setRpcFuture(RpcFuture rpcFuture)
io.netty.buffer.ByteBuf getBinaryAttachment()
void setBinaryAttachment(io.netty.buffer.ByteBuf binaryAttachment)
int getCompressType()
void setCompressType(int compressType)
void reset()
Copyright © 2019 Baidu, Inc.. All rights reserved.