public class NettyRemotingServer extends AbstractNettyRemotingServer
futures, idGenerator, isSending, lock, messageExecutor, nowMills, processorTable, rpcHooks, timerExecutor| 构造器和说明 |
|---|
NettyRemotingServer(ThreadPoolExecutor messageExecutor)
Instantiates a new Rpc remoting server.
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
destroy() |
void |
destroyChannel(String serverAddress,
io.netty.channel.Channel channel)
Destroy channel.
|
TransactionMessageHandler |
getHandler() |
void |
init() |
void |
setHandler(TransactionMessageHandler transactionMessageHandler)
Sets transactionMessageHandler.
|
debugLog, getListenPort, registerProcessor, sendAsyncRequest, sendAsyncResponse, sendSyncRequest, sendSyncRequestbuildRequestMessage, buildResponseMessage, destroyChannel, doAfterRpcHooks, doBeforeRpcHooks, getAddressFromChannel, getAddressFromContext, getFutures, getGroup, getNextMessageId, processMessage, sendAsync, sendSync, setGrouppublic NettyRemotingServer(ThreadPoolExecutor messageExecutor)
messageExecutor - the message executorpublic void init()
init 在类中 AbstractNettyRemotingServerpublic void setHandler(TransactionMessageHandler transactionMessageHandler)
transactionMessageHandler - the transactionMessageHandlerpublic TransactionMessageHandler getHandler()
public void destroyChannel(String serverAddress, io.netty.channel.Channel channel)
AbstractNettyRemotingdestroyChannel 在类中 AbstractNettyRemotingserverAddress - the server addresschannel - the channelpublic void destroy()
destroy 在接口中 Disposabledestroy 在类中 AbstractNettyRemotingServerCopyright © 2022 Seata. All rights reserved.