Search in sources :

Example 1 with GridNearTxFastFinishFuture

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);
}
Also used : GridNearTxFastFinishFuture(org.apache.ignite.internal.processors.cache.distributed.near.GridNearTxFastFinishFuture) IgniteInternalTx(org.apache.ignite.internal.processors.cache.transactions.IgniteInternalTx) TransactionProxyImpl(org.apache.ignite.internal.processors.cache.transactions.TransactionProxyImpl)

Aggregations

GridNearTxFastFinishFuture (org.apache.ignite.internal.processors.cache.distributed.near.GridNearTxFastFinishFuture)1 IgniteInternalTx (org.apache.ignite.internal.processors.cache.transactions.IgniteInternalTx)1 TransactionProxyImpl (org.apache.ignite.internal.processors.cache.transactions.TransactionProxyImpl)1