public interface RpcDone
| 限定符和类型 | 方法和说明 |
|---|---|
void |
done(RpcPacket.ResponsePacket rpcResponse)
on done callback
|
void |
doneTimeout(int requestId,
long createTimestamp,
long expiryTimestamp)
on timeout
|
default void |
handlerResponseIfNeedThrow(RpcPacket.ResponsePacket response)
If an exception state is returned, an exception is thrown
All response states above 400 are in error
|
void done(RpcPacket.ResponsePacket rpcResponse)
rpcResponse - rpcResponsevoid doneTimeout(int requestId,
long createTimestamp,
long expiryTimestamp)
requestId - requestIdcreateTimestamp - createTimestampexpiryTimestamp - expiryTimestampdefault void handlerResponseIfNeedThrow(RpcPacket.ResponsePacket response) throws RpcResponseException
response - responseRpcResponseException - RpcResponseExceptionCopyright © 2021. All rights reserved.