public class XaModeTransactionTable extends Object
TransactionTable
that registers the RemoteCache
as a XAResource
in the transaction.
Only a single XAResource
is registered even if multiple RemoteCache
s interact with the same
transaction.
When more than one RemoteCache
is involved in the Transaction
, the prepare, commit and rollback
requests are sent sequential and they are ordered by the RemoteCache
's name.
If a RemoteCache
is read-only, the commit/rollback isn't invoked.
Constructor and Description |
---|
XaModeTransactionTable(long timeout) |
Modifier and Type | Method and Description |
---|---|
<K,V> TransactionContext<K,V> |
enlist(TransactionalRemoteCacheImpl<K,V> txRemoteCache,
Transaction tx) |
XAResource |
getXaResource() |
void |
start(TransactionOperationFactory operationFactory)
It initializes the
TransactionTable with the TransactionOperationFactory to use. |
public <K,V> TransactionContext<K,V> enlist(TransactionalRemoteCacheImpl<K,V> txRemoteCache, Transaction tx)
public XAResource getXaResource()
public final void start(TransactionOperationFactory operationFactory)
TransactionTable
TransactionTable
with the TransactionOperationFactory
to use.start
in interface TransactionTable
operationFactory
- The TransactionOperationFactory
to use.Copyright © 2021 JBoss by Red Hat. All rights reserved.