| 限定符和类型 | 字段和说明 |
|---|---|
protected Response |
RpcFuture.response |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
RpcFuture.handleConnection(Response response) |
void |
RpcFuture.handleResponse(Response response) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
ServerTraceInterceptor.aroundProcess(Request request,
Response response,
InterceptorChain chain) |
void |
LoadBalanceInterceptor.aroundProcess(Request request,
Response response,
InterceptorChain chain) |
void |
AbstractInterceptor.aroundProcess(Request request,
Response response,
InterceptorChain chain) |
void |
ServerPushInterceptor.aroundProcess(Request request,
Response response,
InterceptorChain chain) |
void |
ClientTraceInterceptor.aroundProcess(Request request,
Response response,
InterceptorChain chain) |
void |
ServerInvokeInterceptor.aroundProcess(Request request,
Response response,
InterceptorChain chain) |
void |
Interceptor.aroundProcess(Request request,
Response response,
InterceptorChain chain)
The around intercept for RPC methods.
|
void |
ServerTraceInterceptor.handleResponse(Response response) |
void |
AbstractInterceptor.handleResponse(Response response) |
void |
ClientTraceInterceptor.handleResponse(Response response) |
void |
Interceptor.handleResponse(Response response)
This method is called in two scenarios:
Before the server sends the response;
After the client receives the response.
|
void |
InterceptorChain.intercept(Request request,
Response response) |
void |
DefaultInterceptorChain.intercept(Request request,
Response response) |
protected void |
LoadBalanceInterceptor.invokeRpc(Request request,
Response response) |
protected void |
ServerPushInterceptor.invokeRpc(Request request,
Response response) |
protected void |
LoadBalanceInterceptor.rpcCore(Request request,
Response response) |
protected void |
ServerPushInterceptor.rpcCore(Request request,
Response response) |
| 限定符和类型 | 类和说明 |
|---|---|
class |
AbstractResponse |
class |
HttpResponse
Bprc http response implementation, used for http protocols.
|
class |
RpcResponse
Bprc tcp response implementation, used for tcp protocols.
|
| 限定符和类型 | 方法和说明 |
|---|---|
Response |
Protocol.createResponse()
create a new response instance
|
Response |
AbstractProtocol.createResponse() |
Response |
Protocol.decodeResponse(Object msg,
io.netty.channel.ChannelHandlerContext ctx)
客户端反序列化rpc响应
|
Response |
Protocol.getResponse()
get a reusable response instance from threadLocal or pool
the response instance must be reset before reuse
|
Response |
AbstractProtocol.getResponse() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
Protocol.afterResponseSent(Request request,
Response response,
io.netty.channel.ChannelFuture channelFuture)
do something if needed after server channel writeAndFlush
|
void |
AbstractProtocol.afterResponseSent(Request request,
Response response,
io.netty.channel.ChannelFuture channelFuture) |
io.netty.buffer.ByteBuf |
Protocol.encodeResponse(Request request,
Response response)
服务端序列化返回结果。
|
| 限定符和类型 | 方法和说明 |
|---|---|
Response |
HttpRpcProtocol.createResponse() |
Response |
HttpRpcProtocol.decodeResponse(Object msg,
io.netty.channel.ChannelHandlerContext ctx) |
Response |
HttpRpcProtocol.getResponse() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
HttpRpcProtocol.addHttpResponseHeaders(io.netty.handler.codec.http.FullHttpResponse fullHttpResponse,
Response response,
io.netty.handler.codec.http.FullHttpRequest fullHttpRequest)
fill http response headers
|
void |
HttpRpcProtocol.afterResponseSent(Request request,
Response response,
io.netty.channel.ChannelFuture channelFuture) |
io.netty.buffer.ByteBuf |
HttpRpcProtocol.encodeResponse(Request request,
Response response) |
byte[] |
HttpRpcProtocol.encodeResponseBody(int protocolType,
Request request,
Response response) |
Object |
HttpRpcProtocol.makeResponse(int protocolType,
Response response) |
| 限定符和类型 | 方法和说明 |
|---|---|
Response |
HuluRpcProtocol.decodeResponse(Object packet,
io.netty.channel.ChannelHandlerContext ctx) |
| 限定符和类型 | 方法和说明 |
|---|---|
io.netty.buffer.ByteBuf |
HuluRpcProtocol.encodeResponse(Request request,
Response response) |
| 限定符和类型 | 方法和说明 |
|---|---|
Response |
NSHeadRpcProtocol.decodeResponse(Object in,
io.netty.channel.ChannelHandlerContext ctx) |
| 限定符和类型 | 方法和说明 |
|---|---|
io.netty.buffer.ByteBuf |
NSHeadRpcProtocol.encodeResponse(Request request,
Response response) |
| 限定符和类型 | 方法和说明 |
|---|---|
Response |
PublicPbrpcProtocol.decodeResponse(Object in,
io.netty.channel.ChannelHandlerContext ctx) |
| 限定符和类型 | 方法和说明 |
|---|---|
io.netty.buffer.ByteBuf |
PublicPbrpcProtocol.encodeResponse(Request request,
Response response) |
| 限定符和类型 | 方法和说明 |
|---|---|
Response |
ServerPushProtocol.decodeServerPushResponse(Object in,
io.netty.channel.ChannelHandlerContext ctx) |
| 限定符和类型 | 方法和说明 |
|---|---|
Response |
DefaultServerPushProtocol.createResponse() |
Response |
DefaultServerPushProtocol.decodeResponse(Object in,
io.netty.channel.ChannelHandlerContext ctx) |
Response |
DefaultServerPushProtocol.decodeServerPushResponse(Object in,
io.netty.channel.ChannelHandlerContext ctx)
decode 从客户端返回的 serverPushResponse
|
Response |
DefaultServerPushProtocol.getResponse() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
DefaultServerPushProtocol.afterResponseSent(Request request,
Response response,
io.netty.channel.ChannelFuture channelFuture) |
io.netty.buffer.ByteBuf |
DefaultServerPushProtocol.encodeResponse(Request request,
Response response) |
| 限定符和类型 | 方法和说明 |
|---|---|
io.netty.buffer.ByteBuf |
SofaRpcProtocol.encodeResponse(Request request,
Response response) |
| 限定符和类型 | 方法和说明 |
|---|---|
io.netty.buffer.ByteBuf |
BaiduRpcProtocol.encodeResponse(Request request,
Response response) |
| 限定符和类型 | 方法和说明 |
|---|---|
Response |
StargateRpcProtocol.decodeResponse(Object msg,
io.netty.channel.ChannelHandlerContext ctx)
客户端解码响应操作
PS:
BRPC 有且仅有当BRPC作为客户端时,使用FastFuture的LogId 作为线程绑定ID
|
| 限定符和类型 | 方法和说明 |
|---|---|
io.netty.buffer.ByteBuf |
StargateRpcProtocol.encodeResponse(Request request,
Response response) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
ServerPushRpcFuture.handleConnection(Response response) |
void |
ServerPushRpcFuture.handleResponse(Response response) |
Copyright © 2019 Baidu, Inc.. All rights reserved.