@ChannelHandler.Sharable public final class TmRpcClient extends AbstractRpcRemotingClient
| 限定符和类型 | 字段和说明 |
|---|---|
static boolean |
enableDegrade
The constant enableDegrade.
|
basketMap, channelHandlers, futures, idGenerator, isSending, mergeLock, mergeMsgMap, messageExecutor, nowMills, timerExecutor| 限定符和类型 | 方法和说明 |
|---|---|
void |
destroy()
Destroy.
|
static TmRpcClient |
getInstance()
Gets instance.
|
static TmRpcClient |
getInstance(String applicationId,
String transactionServiceGroup)
Gets instance.
|
protected Function<String,NettyPoolKey> |
getPoolKeyFunction()
Get pool key function.
|
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 |
setApplicationId(String applicationId)
Sets application id.
|
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 TmRpcClient getInstance(String applicationId, String transactionServiceGroup)
applicationId - the application idtransactionServiceGroup - the transaction service grouppublic static TmRpcClient getInstance()
public void setApplicationId(String applicationId)
applicationId - the application idpublic void setTransactionServiceGroup(String transactionServiceGroup)
transactionServiceGroup - the transaction service grouppublic void init()
AbstractRpcRemotinginit 在类中 AbstractRpcRemotingClientpublic void destroy()
AbstractRpcRemotingdestroy 在接口中 Disposabledestroy 在类中 AbstractRpcRemotingClientprotected Function<String,NettyPoolKey> getPoolKeyFunction()
AbstractRpcRemotingClientgetPoolKeyFunction 在类中 AbstractRpcRemotingClientpublic 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.