public class ServerPushInterceptor extends AbstractInterceptor
| 构造器和说明 |
|---|
ServerPushInterceptor() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
aroundProcess(Request request,
Response response,
InterceptorChain chain)
The around intercept for RPC methods.
|
RpcServer |
getRpcServer() |
protected void |
invokeRpc(Request request,
Response response) |
protected void |
rpcCore(Request request,
Response response) |
protected io.netty.channel.Channel |
selectChannel(Request request) |
void |
setRpcServer(RpcServer rpcServer) |
handleRequest, handleResponseprotected RpcServer rpcServer
public void aroundProcess(Request request, Response response, InterceptorChain chain) throws Exception
InterceptoraroundProcess 在接口中 InterceptoraroundProcess 在类中 AbstractInterceptorresponse - sync result or async futurechain - interceptor chainExceptionprotected void invokeRpc(Request request, Response response) throws Exception
Exceptionprotected io.netty.channel.Channel selectChannel(Request request)
public RpcServer getRpcServer()
public void setRpcServer(RpcServer rpcServer)
Copyright © 2019 Baidu, Inc.. All rights reserved.