@ChannelHandler.Sharable public final class RmRpcClient extends AbstractRpcRemotingClient
basketMap, channelHandlers, futures, idGenerator, isSending, mergeLock, mergeMsgMap, messageExecutor, nowMills, timerExecutor| 限定符和类型 | 方法和说明 |
|---|---|
void |
destroy()
Destroy.
|
static RmRpcClient |
getInstance()
Gets instance.
|
static RmRpcClient |
getInstance(String applicationId,
String transactionServiceGroup)
Gets instance.
|
protected Function<String,NettyPoolKey> |
getPoolKeyFunction()
Get pool key function.
|
protected String |
getTransactionServiceGroup()
Get transaction service group.
|
void |
init()
Init.
|
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 |
registerResource(String resourceGroupId,
String resourceId)
Register new db key.
|
void |
setApplicationId(String applicationId)
Sets application id.
|
void |
setResourceManager(ResourceManager resourceManager)
Sets resource manager.
|
void |
setTransactionServiceGroup(String transactionServiceGroup)
Sets transaction service group.
|
channelInactive, channelRead, destroyChannel, dispatch, exceptionCaught, getClientChannelManager, getClientMessageListener, sendMsgWithResponse, sendMsgWithResponse, sendMsgWithResponse, sendResponse, setClientMessageListener, userEventTriggeredaddChannelPipelineLast, channelWritabilityChanged, close, destroyChannel, getAddressFromChannel, getAddressFromContext, getGroup, getNextMessageId, sendAsyncRequestWithoutResponse, sendAsyncRequestWithResponse, sendAsyncRequestWithResponse, sendRequest, sendResponse, setChannelHandlers, setGroupbind, connect, deregister, disconnect, flush, read, writechannelActive, channelReadComplete, channelRegistered, channelUnregisteredensureNotSharable, handlerAdded, handlerRemoved, isSharablepublic static RmRpcClient getInstance(String applicationId, String transactionServiceGroup)
applicationId - the application idtransactionServiceGroup - the transaction service grouppublic static RmRpcClient getInstance()
public void setApplicationId(String applicationId)
applicationId - the application idpublic void setTransactionServiceGroup(String transactionServiceGroup)
transactionServiceGroup - the transaction service grouppublic void setResourceManager(ResourceManager resourceManager)
resourceManager - the resource managerpublic void init()
AbstractRpcRemotinginit 在类中 AbstractRpcRemotingClientpublic void destroy()
AbstractRpcRemotingdestroy 在接口中 Disposabledestroy 在类中 AbstractRpcRemotingClientprotected Function<String,NettyPoolKey> getPoolKeyFunction()
AbstractRpcRemotingClientgetPoolKeyFunction 在类中 AbstractRpcRemotingClientprotected String getTransactionServiceGroup()
AbstractRpcRemotingClientgetTransactionServiceGroup 在类中 AbstractRpcRemotingClientpublic void onRegisterMsgSuccess(String serverAddress, io.netty.channel.Channel channel, Object response, AbstractMessage requestMessage)
RegisterMsgListenerserverAddress - the server addresschannel - the channelresponse - the responserequestMessage - the request messagepublic void onRegisterMsgFail(String serverAddress, io.netty.channel.Channel channel, Object response, AbstractMessage requestMessage)
RegisterMsgListenerserverAddress - the server addresschannel - the channelresponse - the responserequestMessage - the request messageCopyright © 2019 Seata. All rights reserved.