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)
另请参见:
序列化表格

字段摘要
 
从类 com.taobao.metamorphosis.server.transaction.Transaction 继承的字段
FINISHED_STATE, HEURISTIC_COMMIT_STATE, HEURISTIC_COMPLETE_STATE, HEURISTIC_ROLLBACK_STATE, IN_USE_STATE, PREPARED_STATE, START_STATE
 
构造方法摘要
XATransaction()
           
XATransaction(CommandProcessor brokerProcessor, TransactionStore transactionStore, XATransactionId xid)
           
 
方法摘要
 void commit(boolean onePhase)
           
 CommandProcessor getBrokerProcessor()
           
 org.apache.commons.logging.Log getLog()
           
 TransactionId getTransactionId()
           
 TransactionStore getTransactionStore()
           
 String getUniqueQualifier()
           
 XATransactionId getXid()
           
 int prepare()
           
 void rollback()
           
 void setBrokerProcessor(CommandProcessor brokerProcessor)
           
 void setTransactionStore(TransactionStore transactionStore)
           
 void setXid(XATransactionId xid)
           
 
从类 com.taobao.metamorphosis.server.transaction.Transaction 继承的方法
cancelTimeout, getState, getTimeoutRef, isPrepared, prePrepare, setState, setTimeoutRef, setTransactionInUse
 
从类 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.