/** {@inheritDoc} */ @Override protected void advance() throws IgniteCheckedException { super.advance(); if (curRec != null && advanceC != null) advanceC.apply(curRec.get2()); }
@Nullable @Override public Object call() throws Exception { long start = System.currentTimeMillis(); while(!done.get()) { if (tx) { try (Transaction tx = ignite.transactions().txStart()) { readClos.apply(cache); tx.commit(); } } else readClos.apply(cache); } readTime.addAndGet(System.currentTimeMillis() - start); return null; } }, readThreads(), "cache-load-test-worker");
@Nullable @Override public Object call() throws Exception { long start = System.currentTimeMillis(); while (!done.get()) { if (tx) { try (Transaction tx = ignite.transactions().txStart()) { writeClos.apply(cache); tx.commit(); } } else writeClos.apply(cache); } writeTime.addAndGet(System.currentTimeMillis() - start); return null; } }, writeThreads(), "cache-load-test-worker");
@Nullable @Override public Object call() throws Exception { long start = System.currentTimeMillis(); while (!done.get()) { if (tx) { try (Transaction tx = ignite.transactions().txStart()) { readClos.apply(ignite); tx.commit(); } } else readClos.apply(ignite); } readTime.addAndGet(System.currentTimeMillis() - start); return null; } }, readThreads(), "cache-load-test-worker");
@Nullable @Override public Object call() throws Exception { long start = System.currentTimeMillis(); while (!done.get()) { if (tx) { try (Transaction tx = ignite.transactions().txStart()) { writeClos.apply(ignite); tx.commit(); } } else writeClos.apply(ignite); } writeTime.addAndGet(System.currentTimeMillis() - start); return null; } }, writeThreads(), "cache-load-test-worker");
/** {@inheritDoc} */ @Override protected void advance() throws IgniteCheckedException { super.advance(); if (curRec != null && advanceC != null) advanceC.apply(curRec.get2()); }