com.taobao.metamorphosis.transaction
类 TransactionInfo
java.lang.Object
com.taobao.metamorphosis.transaction.TransactionInfo
public class TransactionInfo
- extends Object
事务信息
- 作者:
- boyan
TransactionInfo
public TransactionInfo(TransactionId transactionId,
String sessionId,
TransactionInfo.TransactionType type)
TransactionInfo
public TransactionInfo(TransactionId transactionId,
String sessionId,
TransactionInfo.TransactionType type,
String uniqueQualifier)
TransactionInfo
public TransactionInfo(TransactionId transactionId,
String sessionId,
TransactionInfo.TransactionType type,
String uniqueQualifier,
int timeout)
setUniqueQualifier
public void setUniqueQualifier(String uniqueQualifier)
getUniqueQualifier
public String getUniqueQualifier()
getTimeout
public int getTimeout()
setTimeout
public void setTimeout(int timeout)
throws XAException
- 设置事务超时
- 参数:
timeout
-
- 抛出:
XAException
getTransactionId
public TransactionId getTransactionId()
getSessionId
public String getSessionId()
getType
public TransactionInfo.TransactionType getType()
hashCode
public int hashCode()
- 覆盖:
- 类
Object
中的 hashCode
equals
public boolean equals(Object obj)
- 覆盖:
- 类
Object
中的 equals
toString
public String toString()
- 覆盖:
- 类
Object
中的 toString
Copyright © 2010–2013. All rights reserved.