public abstract class AbstractRpcRemotingServer extends AbstractRpcRemoting implements RemotingServer
basketMap, channelHandlers, futures, isSending, mergeLock, mergeMsgMap, messageExecutor, nowMills, timerExecutor| 构造器和说明 |
|---|
AbstractRpcRemotingServer(NettyServerConfig nettyServerConfig)
Instantiates a new Rpc remoting server.
|
AbstractRpcRemotingServer(NettyServerConfig nettyServerConfig,
ThreadPoolExecutor messageExecutor,
io.netty.channel.ChannelHandler... handlers)
Instantiates a new Rpc remoting server.
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
destroyChannel(String serverAddress,
io.netty.channel.Channel channel)
Destroy channel.
|
int |
getListenPort()
Gets listen port.
|
void |
setListenPort(int listenPort)
Sets listen port.
|
void |
shutdown()
Shutdown.
|
void |
start()
Start.
|
addChannelPipelineLast, channelRead, channelWritabilityChanged, close, destroy, destroyChannel, dispatch, exceptionCaught, getAddressFromChannel, getAddressFromContext, getGroup, init, sendAsyncRequestWithoutResponse, sendAsyncRequestWithResponse, sendAsyncRequestWithResponse, sendRequest, sendResponse, setChannelHandlers, setGroupbind, connect, deregister, disconnect, flush, read, writechannelActive, channelInactive, channelReadComplete, channelRegistered, channelUnregistered, userEventTriggeredensureNotSharable, handlerAdded, handlerRemoved, isSharablepublic AbstractRpcRemotingServer(NettyServerConfig nettyServerConfig)
nettyServerConfig - the netty server configpublic AbstractRpcRemotingServer(NettyServerConfig nettyServerConfig, ThreadPoolExecutor messageExecutor, io.netty.channel.ChannelHandler... handlers)
nettyServerConfig - the netty server configmessageExecutor - the message executorhandlers - the handlerspublic void setListenPort(int listenPort)
listenPort - the listen portpublic int getListenPort()
public void start()
RemotingServicestart 在接口中 RemotingServicepublic void shutdown()
RemotingServiceshutdown 在接口中 RemotingServicepublic void destroyChannel(String serverAddress, io.netty.channel.Channel channel)
AbstractRpcRemotingdestroyChannel 在类中 AbstractRpcRemotingserverAddress - the server addresschannel - the channelCopyright © 2019 Seata. All rights reserved.