public class RpcServer extends AbstractRpcRemotingServer
basketMap, futures, idGenerator, isSending, mergeLock, mergeMsgMap, messageExecutor, nowMills, timerExecutor| 构造器和说明 |
|---|
RpcServer(ThreadPoolExecutor messageExecutor)
Instantiates a new Abstract rpc server.
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
destroy()
Destroy.
|
void |
init()
Init.
|
Object |
sendASyncRequest(io.netty.channel.Channel channel,
Object message)
Send request with response object.
|
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)
Send request with response object.
|
Object |
sendSyncRequest(String resourceId,
String clientId,
Object message,
long timeout)
Send request with response object.
|
debugLog, destroyChannel, getCheckAuthHandler, getListenPort, getServerMessageListener, getTransactionMessageHandler, setChannelHandlers, setHandler, setListenPort, setServerMessageListenerpublic RpcServer(ThreadPoolExecutor messageExecutor)
messageExecutor - the message executorpublic void init()
init 在类中 AbstractRpcRemotingServerpublic void destroy()
destroy 在接口中 Disposabledestroy 在类中 AbstractRpcRemotingServerpublic void sendResponse(RpcMessage request, io.netty.channel.Channel channel, Object msg)
request - the requestchannel - the channelmsg - the msgpublic Object sendSyncRequest(String resourceId, String clientId, Object message, long timeout) throws TimeoutException
resourceId - the db keyclientId - the client ipmessage - the messagetimeout - the timeoutTimeoutException - the timeout exceptionpublic Object sendSyncRequest(io.netty.channel.Channel clientChannel, Object message) throws TimeoutException
clientChannel - the client channelmessage - the messageTimeoutException - the timeout exceptionpublic Object sendSyncRequest(io.netty.channel.Channel clientChannel, Object message, long timeout) throws TimeoutException
clientChannel - the client channelmessage - the messagetimeout - the timeoutTimeoutException - the timeout exceptionpublic Object sendSyncRequest(String resourceId, String clientId, Object message) throws TimeoutException
resourceId - the db keyclientId - the client ipmessage - the msgTimeoutException - the timeout exceptionpublic Object sendASyncRequest(io.netty.channel.Channel channel, Object message) throws TimeoutException
channel - the channelmessage - the msgTimeoutException - the timeout exceptionCopyright © 2020 Seata. All rights reserved.