public final class TransactionRule extends Object implements org.apache.shardingsphere.infra.rule.identifier.scope.GlobalRule, org.apache.shardingsphere.infra.rule.identifier.type.ResourceHeldRule<ShardingSphereTransactionManagerEngine>
| 构造器和说明 |
|---|
TransactionRule(TransactionRuleConfiguration ruleConfig,
Map<String,org.apache.shardingsphere.infra.metadata.database.ShardingSphereDatabase> databases,
org.apache.shardingsphere.infra.instance.InstanceContext instanceContext) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
addResource(org.apache.shardingsphere.infra.metadata.database.ShardingSphereDatabase database) |
void |
closeStaleResource() |
void |
closeStaleResource(String databaseName) |
String |
getType() |
public TransactionRule(TransactionRuleConfiguration ruleConfig, Map<String,org.apache.shardingsphere.infra.metadata.database.ShardingSphereDatabase> databases, org.apache.shardingsphere.infra.instance.InstanceContext instanceContext)
public void addResource(org.apache.shardingsphere.infra.metadata.database.ShardingSphereDatabase database)
addResource 在接口中 org.apache.shardingsphere.infra.rule.identifier.type.ResourceHeldRule<ShardingSphereTransactionManagerEngine>public void closeStaleResource(String databaseName)
closeStaleResource 在接口中 org.apache.shardingsphere.infra.rule.identifier.type.ResourceHeldRule<ShardingSphereTransactionManagerEngine>public void closeStaleResource()
closeStaleResource 在接口中 org.apache.shardingsphere.infra.rule.identifier.type.ResourceHeldRule<ShardingSphereTransactionManagerEngine>public String getType()
getType 在接口中 org.apache.shardingsphere.infra.rule.ShardingSphereRuleCopyright © 2022 The Apache Software Foundation. All rights reserved.