Obtains a list of prepared transaction branches from a resource manager.
public javax.transaction.xa.Xid[] recover(int flags)
參數
flags
An int value that can take one of the following values: XAResource.TMSTARTRSCAN or XAResource.TMENDRSCAN or XAResource.TMNOFLAGS or XAResource.TMSTARTTRSCAN | XAResource.TMENDRSCAN.
傳回值
An Xid object.
例外狀況
javax.transaction.xa.XAException
備註
This recover method is specified by the recover method in the javax.transaction.xa.XAResource interface.
If the parameter flag is not XAResource.TMSTARTRSCAN or XAResource.TMSTARTRSCAN | XAResource.TMENDRSCAN, a recovery scan must be in progress.