public interface RemotingClient
| 限定符和类型 | 方法和说明 |
|---|---|
void |
onRegisterMsgFail(String serverAddress,
io.netty.channel.Channel channel,
Object response,
AbstractMessage requestMessage)
On register msg fail.
|
void |
onRegisterMsgSuccess(String serverAddress,
io.netty.channel.Channel channel,
Object response,
AbstractMessage requestMessage)
On register msg success.
|
void |
registerProcessor(int messageType,
RemotingProcessor processor,
ExecutorService executor)
register processor
|
void |
sendAsyncRequest(io.netty.channel.Channel channel,
Object msg)
client send async request.
|
void |
sendAsyncResponse(String serverAddress,
RpcMessage rpcMessage,
Object msg)
client send async response.
|
Object |
sendSyncRequest(io.netty.channel.Channel channel,
Object msg)
client send sync request.
|
Object |
sendSyncRequest(Object msg)
client send sync request.
|
Object sendSyncRequest(Object msg) throws TimeoutException
RmNettyRemotingClient.isEnableClientBatchSendRequest()
TmNettyRemotingClient.isEnableClientBatchSendRequest()
is enabled, the message will be sent in batches.msg - 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(String serverAddress, RpcMessage rpcMessage, Object msg)
serverAddress - server addressrpcMessage - rpc message from server requestmsg - transaction message io.seata.core.protocolvoid onRegisterMsgSuccess(String serverAddress, io.netty.channel.Channel channel, Object response, AbstractMessage requestMessage)
serverAddress - the server addresschannel - the channelresponse - the responserequestMessage - the request messagevoid onRegisterMsgFail(String serverAddress, io.netty.channel.Channel channel, Object response, AbstractMessage requestMessage)
serverAddress - the server addresschannel - the channelresponse - the responserequestMessage - the request messagevoid registerProcessor(int messageType,
RemotingProcessor processor,
ExecutorService executor)
messageType - MessageTypeprocessor - RemotingProcessorexecutor - thread poolCopyright © 2022 Seata. All rights reserved.