Class PerCacheTxTable
- java.lang.Object
-
- org.infinispan.server.hotrod.tx.table.PerCacheTxTable
-
public class PerCacheTxTable extends Object
A Transaction Table for client transaction.It stores the global state of a transaction and the map between the
XidandTransaction'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 voidcreateLocalTx(Xid xid, EmbeddedTransaction tx)Adds theEmbeddedTransactionin the local transaction table.ClientAddressgetClientAddress()EmbeddedTransactiongetLocalTx(Xid xid)booleanisEmpty()testing onlyvoidremoveLocalTx(Xid xid)Removes the localEmbeddedTransactionassociated toxid.
-
-
-
Constructor Detail
-
PerCacheTxTable
public PerCacheTxTable(Address address)
-
-
Method Detail
-
getClientAddress
public ClientAddress getClientAddress()
-
getLocalTx
public EmbeddedTransaction getLocalTx(Xid xid)
- Returns:
- The local
EmbeddedTransactionassociated to thexid.
-
removeLocalTx
public void removeLocalTx(Xid xid)
Removes the localEmbeddedTransactionassociated toxid.
-
createLocalTx
public void createLocalTx(Xid xid, EmbeddedTransaction tx)
Adds theEmbeddedTransactionin the local transaction table.
-
isEmpty
public boolean isEmpty()
testing only
-
-