Resource.Result| 构造器和说明 |
|---|
SubCoordinator(TransactionImpl transaction,
boolean hasSuper)
Instantiates a new Sub coordinator.
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
addSynchronization(Synchronization synchronization)
Add synchronization boolean.
|
boolean |
addXaResource(XAResource xaResource)
Add a xa Resource.
|
void |
commit()
Commit.
|
XaState |
getState()
Gets state.
|
XidImpl |
nextXid(XidImpl xId)
Next xid x id.
|
void |
onePhaseCommit()
1 pc .
|
Resource.Result |
prepare()
2pc phase 1.
|
void |
rollback()
Rollback.
|
void |
setRollbackOnly()
Sets rollback only.
|
public SubCoordinator(TransactionImpl transaction, boolean hasSuper)
transaction - the transactionhasSuper - the has superpublic Resource.Result prepare() throws RemoteException
Resourceprepare 在接口中 ResourceRemoteException - the remote exceptionpublic void rollback()
throws RemoteException
Resourcerollback 在接口中 ResourceRemoteException - the remote exceptionpublic void onePhaseCommit()
throws TransactionRolledbackException,
RemoteException
ResourceonePhaseCommit 在接口中 ResourceRemoteException - the remote exceptionTransactionRolledbackExceptionpublic boolean addXaResource(XAResource xaResource)
xaResource - the xa resourcepublic void addSynchronization(Synchronization synchronization) throws RollbackException
synchronization - the synchronizationRollbackException - the rollback exceptionpublic void setRollbackOnly()
public XaState getState()
Copyright © 2022 dromara. All rights reserved.