public class GlobalTransactionContext extends Object
| 限定符和类型 | 方法和说明 |
|---|---|
static GlobalTransaction |
getCurrentOrCreate()
Get GlobalTransaction instance bind on current thread.
|
static GlobalTransaction |
reload(String xid)
Reload GlobalTransaction instance according to the given XID
|
public static GlobalTransaction getCurrentOrCreate()
public static GlobalTransaction reload(String xid) throws TransactionException
xid - the xidTransactionException - the transaction exceptionCopyright © 2019 Seata. All rights reserved.