public class ClientTxContext extends Object
| Constructor and Description |
|---|
ClientTxContext(int txId,
GridNearTxLocal tx)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
acquire(boolean resumeTx)
Acquire context to work with transaction in the current thread.
|
void |
close()
Close transaction context.
|
void |
release(boolean suspendTx)
Release context.
|
GridNearTxLocal |
tx()
Gets transaction.
|
int |
txId()
Gets transaction id.
|
public ClientTxContext(int txId,
GridNearTxLocal tx)
public void acquire(boolean resumeTx)
throws IgniteCheckedException
IgniteCheckedExceptionpublic void release(boolean suspendTx)
throws IgniteCheckedException
IgniteCheckedExceptionpublic int txId()
public GridNearTxLocal tx()
public void close()
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.11.1 Release Date : December 20 2021