Class ClientTxContext
- java.lang.Object
-
- org.apache.ignite.internal.processors.platform.client.tx.ClientTxContext
-
public class ClientTxContext extends Object
Client transaction context.
-
-
Constructor Summary
Constructors Constructor Description ClientTxContext(int txId, GridNearTxLocal tx)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidacquire(boolean resumeTx)Acquire context to work with transaction in the current thread.voidclose()Close transaction context.voidrelease(boolean suspendTx)Release context.GridNearTxLocaltx()Gets transaction.inttxId()Gets transaction id.
-
-
-
Constructor Detail
-
ClientTxContext
public ClientTxContext(int txId, GridNearTxLocal tx)Constructor.
-
-
Method Detail
-
acquire
public void acquire(boolean resumeTx) throws IgniteCheckedExceptionAcquire context to work with transaction in the current thread.- Throws:
IgniteCheckedException
-
release
public void release(boolean suspendTx) throws IgniteCheckedExceptionRelease context.- Throws:
IgniteCheckedException
-
txId
public int txId()
Gets transaction id.
-
tx
public GridNearTxLocal tx()
Gets transaction.
-
close
public void close()
Close transaction context.
-
-