public interface RemotingServer
| 限定符和类型 | 方法和说明 |
|---|---|
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.
|
Object sendSyncRequest(String resourceId, String clientId, Object msg) throws TimeoutException
resourceId - rm client resourceIdclientId - rm client idmsg - transaction message io.seata.core.protocolTimeoutException - TimeoutExceptionObject sendSyncRequest(io.netty.channel.Channel channel, Object msg) throws TimeoutException
channel - client channelmsg - transaction message io.seata.core.protocolTimeoutException - TimeoutExceptionvoid sendAsyncRequest(io.netty.channel.Channel channel,
Object msg)
channel - client channelmsg - transaction message io.seata.core.protocolvoid sendAsyncResponse(RpcMessage rpcMessage, io.netty.channel.Channel channel, Object msg)
rpcMessage - rpc message from client requestchannel - client channelmsg - transaction message io.seata.core.protocolvoid registerProcessor(int messageType,
RemotingProcessor processor,
ExecutorService executor)
messageType - MessageTypeprocessor - RemotingProcessorexecutor - thread poolCopyright © 2022 Seata. All rights reserved.