public interface ServerMessageSender
| 限定符和类型 | 方法和说明 |
|---|---|
Object |
sendASyncRequest(io.netty.channel.Channel channel,
Object message)
ASync call to RM
|
void |
sendResponse(RpcMessage request,
io.netty.channel.Channel channel,
Object msg)
Send response.
|
Object |
sendSyncRequest(io.netty.channel.Channel clientChannel,
Object message)
Send request with response object.
|
Object |
sendSyncRequest(io.netty.channel.Channel clientChannel,
Object message,
long timeout)
Send request with response object.
|
Object |
sendSyncRequest(String resourceId,
String clientId,
Object message)
Sync call to RM
|
Object |
sendSyncRequest(String resourceId,
String clientId,
Object message,
long timeout)
Sync call to RM with timeout.
|
void sendResponse(RpcMessage request, io.netty.channel.Channel channel, Object msg)
request - the requestchannel - the channelmsg - the msgObject sendSyncRequest(String resourceId, String clientId, Object message, long timeout) throws IOException, TimeoutException
resourceId - Resource IDclientId - Client IDmessage - Request messagetimeout - timeout of the callIOException - .TimeoutException - the timeout exceptionObject sendSyncRequest(String resourceId, String clientId, Object message) throws IOException, TimeoutException
resourceId - Resource IDclientId - Client IDmessage - Request messageIOException - .TimeoutException - the timeout exceptionObject sendSyncRequest(io.netty.channel.Channel clientChannel, Object message) throws TimeoutException
clientChannel - the client channelmessage - the messageTimeoutException - the timeout exceptionObject sendSyncRequest(io.netty.channel.Channel clientChannel, Object message, long timeout) throws TimeoutException
clientChannel - the client channelmessage - the messagetimeout - the timeoutTimeoutException - the timeout exceptionObject sendASyncRequest(io.netty.channel.Channel channel, Object message) throws IOException, TimeoutException
channel - channelmessage - Request messageIOException - .TimeoutException - the timeout exceptionCopyright © 2019 Seata. All rights reserved.