public static JournalPersistenceAdapter newInstance(File directory) throws IOException, JMSException {
return new JournalPersistenceAdapter(directory, JdbmPersistenceAdapter.newInstance(directory), new DefaultWireFormat());
}
public JournalPersistenceAdapter() {
checkpointExecutor = new QueuedExecutor(new LinkedQueue());
checkpointExecutor.setThreadFactory(new ThreadFactory() {
public Thread newThread(Runnable runnable) {
Thread answer = new Thread(runnable, "Checkpoint Worker");
answer.setDaemon(true);
answer.setPriority(Thread.MAX_PRIORITY);