216217218219220221222223224225226
for (int j = 0; j < 1000; j++) { journal.appendAddRecordTransactional(i, count++, (byte)0, data); } journal.appendCommitRecord(i, true); long endTrans = System.currentTimeMillis(); rates[i] = 1000 * (double)1000 / (endTrans - startTrans); }
141142143144145146147148149150151
2, 5 }); } // After this is complete, you're sure the records are there journalExample.appendCommitRecord(tx, true); System.out.println("Done!"); journalExample.stop(); }