com.taobao.metamorphosis.server.transaction
类 XATransaction
java.lang.Object
com.taobao.metamorphosis.server.transaction.Transaction
com.taobao.metamorphosis.server.transaction.XATransaction
- 所有已实现的接口:
- Serializable
public class XATransaction
- extends Transaction
- implements Serializable
XA事务
- 作者:
- boyan(boyan@taobao.com)
- 另请参见:
- 序列化表格
从类 java.lang.Object 继承的方法 |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XATransaction
public XATransaction()
XATransaction
public XATransaction(CommandProcessor brokerProcessor,
TransactionStore transactionStore,
XATransactionId xid)
getUniqueQualifier
public String getUniqueQualifier()
getTransactionStore
public TransactionStore getTransactionStore()
setTransactionStore
public void setTransactionStore(TransactionStore transactionStore)
getXid
public XATransactionId getXid()
setXid
public void setXid(XATransactionId xid)
getBrokerProcessor
public CommandProcessor getBrokerProcessor()
setBrokerProcessor
public void setBrokerProcessor(CommandProcessor brokerProcessor)
commit
public void commit(boolean onePhase)
throws XAException,
IOException
- 指定者:
- 类
Transaction
中的 commit
- 抛出:
XAException
IOException
rollback
public void rollback()
throws XAException,
IOException
- 指定者:
- 类
Transaction
中的 rollback
- 抛出:
XAException
IOException
prepare
public int prepare()
throws XAException,
IOException
- 指定者:
- 类
Transaction
中的 prepare
- 抛出:
XAException
IOException
getTransactionId
public TransactionId getTransactionId()
- 指定者:
- 类
Transaction
中的 getTransactionId
getLog
public org.apache.commons.logging.Log getLog()
- 指定者:
- 类
Transaction
中的 getLog
Copyright © 2010–2013. All rights reserved.