Package org.infinispan.transaction.impl
Class TransactionCoordinator
java.lang.Object
org.infinispan.transaction.impl.TransactionCoordinator
Coordinates transaction prepare/commits as received from the
.
Integrates with the TM through either
invalid reference
javax.transaction.TransactionManager
TransactionXaAdapter
or
through SynchronizationAdapter
.- Since:
- 5.0
- Author:
- Mircea.Markus@jboss.com, Pedro Ruivo
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncommit
(LocalTransaction localTransaction, boolean isOnePhase) boolean
is1PcForAutoCommitTransaction
(LocalTransaction localTransaction) final CompletionStage
<Integer> prepare
(LocalTransaction localTransaction) final CompletionStage
<Integer> prepare
(LocalTransaction localTransaction, boolean replayEntryWrapping) rollback
(LocalTransaction localTransaction) void
start()
-
Constructor Details
-
TransactionCoordinator
public TransactionCoordinator()
-
-
Method Details
-
start
public void start() -
prepare
-
prepare
public final CompletionStage<Integer> prepare(LocalTransaction localTransaction, boolean replayEntryWrapping) -
commit
-
rollback
-
is1PcForAutoCommitTransaction
-