tcc
2016-03-31 19:11:58 1 举报
TCC(Thread-Communicating Components)是一种基于Java的开源框架,用于实现高并发、高性能的企业级应用。它通过将任务划分为多个线程来提高系统的处理能力,同时利用内存共享和消息传递机制实现线程间的通信与协作。TCC的主要特点包括:可扩展性强、容错性好、易于维护等。在实际应用中,TCC广泛应用于金融、电信、电子商务等领域,为企业提供了一种可靠、高效的解决方案。
作者其他创作
大纲/内容
TccTransactionRpcManagerImpl
TccConnection
PreparedStatement
+ executeQuery(): ResulteSet+ executeUpdate(): int
TccRollbackRpcManagerImpl
DistributedPreparedStatement
TccStatement
RollbackManager
exception
TIME_OUT_CANCELED(4)
@TccProcedure
DEAL(1)
LocalTransactionFacade
LocalRollbackManager
TccContext
+ getContext(): TccContext+ setOutId(String outId)
LocalTccAutoProxyCreator
TccTransactionRpcManager
+ begin(TransactionLog log): Long+ commit(TransactionLog log): boolean+ rollback(TransactionLog log): boolean
TccAutoProxyCreator
+ proxyBean(Object bean):Object
TccRollbackRpcManagerPool
TransactionManager
+ begin():Long+ commit():boolean+ rollback():boolean
DataSource
+ getConnection():Connection
TccRollbackRpcManager
TccPreparedStatement
CANCELED(3)
Statement
+ executeQuery():ResultSet+ executeUpdate(sql):int
ROLL_BACK(-1)
TccTransactionTemplate
+ runTcc(TccCallable call)
time_out
Connection
+ createStatement():Statement
DistributedDataSource
RemoteTransactionFacade
LocalTransactionManager
@TccTransaction
DONE(2)
TccDataSource
RemoteTccAutoProxyCreator
RemoteRollbackManager
TransactionFacade
TIME_OUT(-2)
DistributedConnection
RemoteTransactionManager
DistributedStatement
0 条评论
回复 删除
下一页