public interface ServerMessageSender
| 限定符和类型 | 方法和说明 |
|---|---|
void |
sendResponse(long msgId,
io.netty.channel.Channel channel,
Object msg)
Send response.
|
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(long msgId,
io.netty.channel.Channel channel,
Object msg)
msgId - the msg idchannel - 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 exceptionCopyright © 2019 Seata. All rights reserved.