public interface Response
| Modifier and Type | Method and Description |
|---|---|
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() |
boolean |
isHeartbeat() |
void |
reset() |
void |
setBinaryAttachment(io.netty.buffer.ByteBuf binaryAttachment) |
void |
setCompressType(int compressType) |
void |
setCorrelationId(long correlationId) |
void |
setException(Throwable exception) |
void |
setHeartbeat(boolean heartbeat) |
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)
boolean isHeartbeat()
void setHeartbeat(boolean heartbeat)
void reset()
Copyright © 2020 Baidu, Inc.. All rights reserved.