.compressionEnable()
.checksumEnable()
.closeOnJvmShutdown()
.snapshotEnable();
*/
DBMaker dbMaker = DBMaker.newFileDB(new File(journalFileLocation, RECORDS_FIELD))
.compressionEnable()
.checksumEnable()
.mmapFileEnableIfSupported()
.snapshotEnable();
if (asyncWritesEnabled) {
dbMaker.asyncWriteEnable();
}
this.journalDB = dbMaker.make();
this.records = this.journalDB.createTreeMap(RECORDS_FIELD).counterEnable().makeOrGet();
Atomic.String journalAtomic = this.journalDB.getAtomicString(JOURNAL_ID_FIELD);
//only write the value the first time
if (StringUtil.isBlank(journalAtomic.get())) {
journalAtomic.set("journal_" + UUID.randomUUID().toString());