public class RpcServerPipelineInitializer
extends io.netty.channel.ChannelInitializer<io.netty.channel.Channel>
| 构造器和说明 |
|---|
RpcServerPipelineInitializer(RpcServiceRegistry rpcServiceRegistry,
RpcServerOptions rpcServerOptions,
ExecutorService es,
ExceptionCatcher exceptionCatcher)
Instantiates a new rpc server pipeline initializer.
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
close()
Close.
|
protected void |
initChannel(io.netty.channel.Channel ch) |
void |
setExceptionCatcher(ExceptionCatcher exceptionCatcher)
Sets the exception catcher.
|
channelRegistered, exceptionCaught, handlerAdded, handlerRemovedpublic RpcServerPipelineInitializer(RpcServiceRegistry rpcServiceRegistry, RpcServerOptions rpcServerOptions, ExecutorService es, ExceptionCatcher exceptionCatcher)
rpcServiceRegistry - the rpc service registryrpcServerOptions - the rpc server optionses - the esexceptionCatcher - the exception catcherpublic void setExceptionCatcher(ExceptionCatcher exceptionCatcher)
exceptionCatcher - the new exception catcherprotected void initChannel(io.netty.channel.Channel ch)
throws Exception
initChannel 在类中 io.netty.channel.ChannelInitializer<io.netty.channel.Channel>Exceptionpublic void close()
Copyright © 2022 Baidu, Inc.. All rights reserved.