public class NettyRemotingServer extends AbstractNettyRemotingServer
futures, idGenerator, isSending, lock, messageExecutor, nowMills, processorTable, rpcHooks, timerExecutor| Constructor and Description |
|---|
NettyRemotingServer(ThreadPoolExecutor messageExecutor)
Instantiates a new Rpc remoting server.
|
| Modifier and Type | Method and Description |
|---|---|
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 in class AbstractNettyRemotingServerpublic void setHandler(TransactionMessageHandler transactionMessageHandler)
transactionMessageHandler - the transactionMessageHandlerpublic TransactionMessageHandler getHandler()
public void destroyChannel(String serverAddress, io.netty.channel.Channel channel)
AbstractNettyRemotingdestroyChannel in class AbstractNettyRemotingserverAddress - the server addresschannel - the channelpublic void destroy()
destroy in interface Disposabledestroy in class AbstractNettyRemotingServerCopyright © 2023 Seata. All rights reserved.