Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions changes/en-us/2.x.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ Add changes here for all PR submitted to the 2.x branch.

### doc:

- [[#7462](https://github.com/seata/seata/pull/7462)] improve TM module Javadoc with comprehensive English documentation
- [[#7531](https://github.com/seata/seata/pull/7531)] Optimize the Readme and change documents
- [[#7569](https://github.com/seata/seata/pull/7569)] Add hyperlink to CONTRIBUTING.md in pull request template
- [[#7605](https://github.com/apache/incubator-seata/pull/7605)] Add the type of registry as seata in application.yml
Expand Down
1 change: 1 addition & 0 deletions changes/zh-cn/2.x.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@

### doc:

- [[#7462](https://github.com/seata/seata/pull/7462)] 完善 TM 模块的 Javadoc,补充全面的英文文档说明。
- [[#7531](https://github.com/seata/seata/pull/7531)] 优化 Readme 和 change 文档
- [[#7569](https://github.com/seata/seata/pull/7569)] 在拉取请求模板中添加 CONTRIBUTING.md 超链接
- [[#7605](https://github.com/apache/incubator-seata/pull/7605)] 在application.yml中增加了seata作为注册中心的注释
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,45 @@
import java.util.concurrent.TimeoutException;

/**
* The type Default transaction manager.
* Default implementation of Transaction Manager (TM) in Seata distributed transaction system.
*
* <p>Acts as the primary client-side component for managing global transactions.
* Forwards transaction management operations to Transaction Coordinator (TC) server
* through network communication.</p>
*
* <p><b>Core Operations:</b></p>
* <ul>
* <li><b>Begin</b>: Request new global transaction and receive XID</li>
* <li><b>Commit</b>: Initiate two-phase commit protocol</li>
* <li><b>Rollback</b>: Request global transaction rollback</li>
* <li><b>Status Query</b>: Retrieve current transaction status</li>
* <li><b>Status Report</b>: Report transaction status changes</li>
* </ul>
*
* <p><b>Communication:</b> Uses Netty-based TCP communication with configurable
* serialization, connection pooling, and automatic failover to available TC servers.</p>
*
* <p><b>Usage Example:</b></p>
* <pre>{@code
* TransactionManager tm = new DefaultTransactionManager();
* try {
* String xid = tm.begin("app-id", "service-group", "order-create", 30000);
* // Execute business logic...
* GlobalStatus status = tm.commit(xid);
* } catch (TransactionException e) {
* tm.rollback(xid);
* throw e;
* }
* }</pre>
*
* <p>Thread-safe and typically used indirectly through {@link org.apache.seata.tm.api.DefaultGlobalTransaction}
* or {@link org.apache.seata.tm.api.TransactionalTemplate}.</p>
*
* @author Seata Team
* @see TransactionManager
* @see TmNettyRemotingClient
* @see org.apache.seata.tm.api.DefaultGlobalTransaction
* @since 1.0.0
*/
public class DefaultTransactionManager implements TransactionManager {

Expand Down
Loading
Loading