public abstract class AbstractNettyRemotingServer extends AbstractNettyRemoting implements RemotingServer
futures, idGenerator, isSending, lock, messageExecutor, nowMills, processorTable, rpcHooks, timerExecutor| 构造器和说明 |
|---|
AbstractNettyRemotingServer(ThreadPoolExecutor messageExecutor,
NettyServerConfig nettyServerConfig) |
| 限定符和类型 | 方法和说明 |
|---|---|
protected void |
debugLog(String format,
Object... arguments)
Debug log.
|
void |
destroy() |
int |
getListenPort()
Gets listen port.
|
void |
init() |
void |
registerProcessor(int messageType,
RemotingProcessor processor,
ExecutorService executor)
register processor
|
void |
sendAsyncRequest(io.netty.channel.Channel channel,
Object msg)
server send async request.
|
void |
sendAsyncResponse(RpcMessage rpcMessage,
io.netty.channel.Channel channel,
Object msg)
server send async response.
|
Object |
sendSyncRequest(io.netty.channel.Channel channel,
Object msg)
server send sync request.
|
Object |
sendSyncRequest(String resourceId,
String clientId,
Object msg)
server send sync request.
|
buildRequestMessage, buildResponseMessage, destroyChannel, destroyChannel, doAfterRpcHooks, doBeforeRpcHooks, getAddressFromChannel, getAddressFromContext, getFutures, getGroup, getNextMessageId, processMessage, sendAsync, sendSync, setGrouppublic AbstractNettyRemotingServer(ThreadPoolExecutor messageExecutor, NettyServerConfig nettyServerConfig)
public void init()
init 在类中 AbstractNettyRemotingpublic Object sendSyncRequest(String resourceId, String clientId, Object msg) throws TimeoutException
RemotingServersendSyncRequest 在接口中 RemotingServerresourceId - rm client resourceIdclientId - rm client idmsg - transaction message io.seata.core.protocolTimeoutException - TimeoutExceptionpublic Object sendSyncRequest(io.netty.channel.Channel channel, Object msg) throws TimeoutException
RemotingServersendSyncRequest 在接口中 RemotingServerchannel - client channelmsg - transaction message io.seata.core.protocolTimeoutException - TimeoutExceptionpublic void sendAsyncRequest(io.netty.channel.Channel channel,
Object msg)
RemotingServersendAsyncRequest 在接口中 RemotingServerchannel - client channelmsg - transaction message io.seata.core.protocolpublic void sendAsyncResponse(RpcMessage rpcMessage, io.netty.channel.Channel channel, Object msg)
RemotingServersendAsyncResponse 在接口中 RemotingServerrpcMessage - rpc message from client requestchannel - client channelmsg - transaction message io.seata.core.protocolpublic void registerProcessor(int messageType,
RemotingProcessor processor,
ExecutorService executor)
RemotingServerregisterProcessor 在接口中 RemotingServermessageType - MessageTypeprocessor - RemotingProcessorexecutor - thread poolpublic int getListenPort()
public void destroy()
destroy 在接口中 Disposabledestroy 在类中 AbstractNettyRemotingCopyright © 2022 Seata. All rights reserved.