public class RpcContext extends Object
| 构造器和说明 |
|---|
RpcContext() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
addResource(String resource)
Add resource.
|
void |
addResources(Set<String> resource)
Add resources.
|
String |
getApplicationId()
Gets get application id.
|
io.netty.channel.Channel |
getChannel()
Gets get channel.
|
String |
getClientId()
Gets get client id.
|
ConcurrentMap<String,ConcurrentMap<Integer,RpcContext>> |
getClientRMHolderMap()
Gets get client rm holder map.
|
NettyPoolKey.TransactionRole |
getClientRole()
Gets get client role.
|
Map<Integer,RpcContext> |
getPortMap(String resourceId)
Gets port map.
|
Set<String> |
getResourceSets()
Gets get resource sets.
|
String |
getTransactionServiceGroup()
Gets get transaction service group.
|
String |
getVersion()
Gets get version.
|
void |
holdInClientChannels(ConcurrentMap<Integer,RpcContext> clientTMHolderMap)
Hold in client channels.
|
void |
holdInIdentifiedChannels(ConcurrentMap<io.netty.channel.Channel,RpcContext> clientIDHolderMap)
Hold in identified channels.
|
void |
holdInResourceManagerChannels(String resourceId,
ConcurrentMap<Integer,RpcContext> portMap)
Hold in resource manager channels.
|
void |
holdInResourceManagerChannels(String resourceId,
Integer clientPort)
Hold in resource manager channels.
|
void |
release()
Release.
|
void |
setApplicationId(String applicationId)
Sets set application id.
|
void |
setChannel(io.netty.channel.Channel channel)
Sets set channel.
|
void |
setClientId(String clientId)
Sets client id.
|
void |
setClientRole(NettyPoolKey.TransactionRole clientRole)
Sets set client role.
|
void |
setResourceSets(Set<String> resourceSets)
Sets set resource sets.
|
void |
setTransactionServiceGroup(String transactionServiceGroup)
Sets set transaction service group.
|
void |
setVersion(String version)
Sets set version.
|
String |
toString() |
public void release()
public void holdInClientChannels(ConcurrentMap<Integer,RpcContext> clientTMHolderMap)
clientTMHolderMap - the client tm holder mappublic void holdInIdentifiedChannels(ConcurrentMap<io.netty.channel.Channel,RpcContext> clientIDHolderMap)
clientIDHolderMap - the client id holder mappublic void holdInResourceManagerChannels(String resourceId, ConcurrentMap<Integer,RpcContext> portMap)
resourceId - the resource idportMap - the client rm holder mappublic void holdInResourceManagerChannels(String resourceId, Integer clientPort)
resourceId - the resource idclientPort - the client portpublic ConcurrentMap<String,ConcurrentMap<Integer,RpcContext>> getClientRMHolderMap()
public Map<Integer,RpcContext> getPortMap(String resourceId)
resourceId - the resource idpublic String getClientId()
public io.netty.channel.Channel getChannel()
public void setChannel(io.netty.channel.Channel channel)
channel - the channelpublic String getApplicationId()
public void setApplicationId(String applicationId)
applicationId - the application idpublic String getTransactionServiceGroup()
public void setTransactionServiceGroup(String transactionServiceGroup)
transactionServiceGroup - the transaction service grouppublic NettyPoolKey.TransactionRole getClientRole()
public void setClientRole(NettyPoolKey.TransactionRole clientRole)
clientRole - the client rolepublic String getVersion()
public void setVersion(String version)
version - the versionpublic Set<String> getResourceSets()
public void setResourceSets(Set<String> resourceSets)
resourceSets - the resource setspublic void addResource(String resource)
resource - the resourcepublic void addResources(Set<String> resource)
resource - the resourcepublic void setClientId(String clientId)
clientId - the client idCopyright © 2019 Seata. All rights reserved.