use of org.apache.ignite.internal.processors.cache.distributed.near.GridNearTxFastFinishFuture in project ignite by apache.
the class CacheTxFastFinishTest method checkFastTxFinish.
/**
* @param tx Transaction.
* @param commit Commit flag.
*/
protected void checkFastTxFinish(Transaction tx, boolean commit) {
if (commit)
tx.commit();
else
tx.rollback();
IgniteInternalTx tx0 = ((TransactionProxyImpl) tx).tx();
assertNull(prepareFuture(tx0));
assertTrue(finishFuture(tx0) instanceof GridNearTxFastFinishFuture);
}
Aggregations