Package org.infinispan.transaction.impl
Class TransactionCoordinator
- java.lang.Object
-
- org.infinispan.transaction.impl.TransactionCoordinator
-
public class TransactionCoordinator extends Object
Coordinates transaction prepare/commits as received from theTransactionManager
. Integrates with the TM through eitherTransactionXaAdapter
or throughSynchronizationAdapter
.- Since:
- 5.0
- Author:
- Mircea.Markus@jboss.com, Pedro Ruivo
-
-
Constructor Summary
Constructors Constructor Description TransactionCoordinator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
commit(LocalTransaction localTransaction, boolean isOnePhase)
boolean
is1PcForAutoCommitTransaction(LocalTransaction localTransaction)
int
prepare(LocalTransaction localTransaction)
int
prepare(LocalTransaction localTransaction, boolean replayEntryWrapping)
void
rollback(LocalTransaction localTransaction)
void
start()
-
-
-
Method Detail
-
start
public void start()
-
prepare
public final int prepare(LocalTransaction localTransaction) throws XAException
- Throws:
XAException
-
prepare
public final int prepare(LocalTransaction localTransaction, boolean replayEntryWrapping) throws XAException
- Throws:
XAException
-
commit
public boolean commit(LocalTransaction localTransaction, boolean isOnePhase) throws XAException
- Throws:
XAException
-
rollback
public void rollback(LocalTransaction localTransaction) throws XAException
- Throws:
XAException
-
is1PcForAutoCommitTransaction
public boolean is1PcForAutoCommitTransaction(LocalTransaction localTransaction)
-
-