共用方式為


setTransactionTimeout Method (SQLServerXAResource)

Sets the current transaction time out value for this SQLServerXAResource object.

public boolean setTransactionTimeout(int seconds)

參數

seconds

An int value.

傳回值

true if the timeout was successfully set. Otherwise, false.

例外狀況

javax.transaction.xa.XAException

備註

This setTransactionTimeout method is specified by the setTransactionTimeout method in the javax.transaction.xa.XAResource interface.

另請參閱

參考

SQLServerXAResource Class

概念

SQLServerXAResource Methods
SQLServerXAResource Members