IStorageEngine<ByteArray, byte[]> dstore;
if (persistent) {
if (persistentDataSource == null)
persistentDataSource = JavaDBStorageEngine.getDataSource(dbPath, false);
dstore = new JavaDBStorageEngine(storeName, persistentDataSource);
} else {
dstore = new InMemoryStorageEngine<ByteArray, byte[]>(storeName);
}
store = new SynchronizingStorageEngine(dstore, syncManager,
syncManager.debugCounter,