public class TCCFenceHandler extends Object
| 限定符和类型 | 方法和说明 |
|---|---|
static boolean |
commitFence(Method commitMethod,
Object targetTCCBean,
String xid,
Long branchId,
Object[] args)
tcc commit method enhanced
|
static boolean |
deleteFence(String xid,
Long branchId)
Delete TCC Fence
|
static int |
deleteFenceByDate(Date datetime)
Delete TCC Fence By Datetime
|
static Object |
prepareFence(String xid,
Long branchId,
String actionName,
Callback<Object> targetCallback)
tcc prepare method enhanced
|
static boolean |
rollbackFence(Method rollbackMethod,
Object targetTCCBean,
String xid,
Long branchId,
Object[] args,
String actionName)
tcc rollback method enhanced
|
static void |
setDataSource(DataSource dataSource) |
static void |
setTransactionTemplate(org.springframework.transaction.support.TransactionTemplate transactionTemplate) |
public static void setDataSource(DataSource dataSource)
public static void setTransactionTemplate(org.springframework.transaction.support.TransactionTemplate transactionTemplate)
public static Object prepareFence(String xid, Long branchId, String actionName, Callback<Object> targetCallback)
xid - the global transaction idbranchId - the branch transaction idactionName - the action nametargetCallback - the target callbackpublic static boolean commitFence(Method commitMethod, Object targetTCCBean, String xid, Long branchId, Object[] args)
commitMethod - commit methodtargetTCCBean - target tcc beanxid - the global transaction idbranchId - the branch transaction idargs - commit method's parameterspublic static boolean rollbackFence(Method rollbackMethod, Object targetTCCBean, String xid, Long branchId, Object[] args, String actionName)
rollbackMethod - rollback methodtargetTCCBean - target tcc beanxid - the global transaction idbranchId - the branch transaction idargs - rollback method's parametersactionName - the action namepublic static boolean deleteFence(String xid, Long branchId)
xid - the global transaction idbranchId - the branch transaction idpublic static int deleteFenceByDate(Date datetime)
datetime - datetimeCopyright © 2022 Seata. All rights reserved.