this.taskRunnerFactory = this.brokerService.getTaskRunnerFactory();
this.scheduler = this.brokerService.getScheduler();
} else {
this.taskRunnerFactory = new TaskRunnerFactory("AMQPersistenceAdaptor Task", getJournalThreadPriority(),
true, 1000, isUseDedicatedTaskRunner());
this.scheduler = new Scheduler("AMQPersistenceAdapter Scheduler");
}
IOHelper.mkdirs(this.directory);
lockFile = new RandomAccessFile(new File(directory, "lock"), "rw");
lock();