Class PerCacheTxTable
- java.lang.Object
-
- org.infinispan.server.hotrod.tx.table.PerCacheTxTable
-
public class PerCacheTxTable extends java.lang.Object
A Transaction Table for client transaction.It stores the global state of a transaction and the map between the
Xid
andTransaction
's run locally.- Since:
- 9.4
- Author:
- Pedro Ruivo
-
-
Constructor Summary
Constructors Constructor Description PerCacheTxTable(Address address)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
createLocalTx(javax.transaction.xa.Xid xid, EmbeddedTransaction tx)
Adds theEmbeddedTransaction
in the local transaction table.ClientAddress
getClientAddress()
EmbeddedTransaction
getLocalTx(javax.transaction.xa.Xid xid)
boolean
isEmpty()
testing onlyvoid
removeLocalTx(javax.transaction.xa.Xid xid)
Removes the localEmbeddedTransaction
associated toxid
.
-
-
-
Constructor Detail
-
PerCacheTxTable
public PerCacheTxTable(Address address)
-
-
Method Detail
-
getClientAddress
public ClientAddress getClientAddress()
-
getLocalTx
public EmbeddedTransaction getLocalTx(javax.transaction.xa.Xid xid)
- Returns:
- The local
EmbeddedTransaction
associated to thexid
.
-
removeLocalTx
public void removeLocalTx(javax.transaction.xa.Xid xid)
Removes the localEmbeddedTransaction
associated toxid
.
-
createLocalTx
public void createLocalTx(javax.transaction.xa.Xid xid, EmbeddedTransaction tx)
Adds theEmbeddedTransaction
in the local transaction table.
-
isEmpty
public boolean isEmpty()
testing only
-
-