Storage-equivalent instead.public class NonFlushingIoAdapter extends VanillaIoAdapter
RandomAccessFileAdapter randomAccessFileAdapter = new RandomAccessFileAdapter();
NonFlushingIoAdapter nonFlushingIoAdapter = new NonFlushingIoAdapter(randomAccessFileAdapter);
CachedIoAdapter cachedIoAdapter = new CachedIoAdapter(nonFlushingIoAdapter);
Configuration configuration = Db4o.newConfiguration();
configuration.io(cachedIoAdapter);
sync()
after every single one of the above steps during transaction
commit. The calls to sync() have a high performance cost.
By using this IoAdapter it is possible to omit these calls, at the cost
of a risc of corrupted database files upon hardware-, power- or operating
system failures._delegate| Constructor and Description |
|---|
NonFlushingIoAdapter(IoAdapter delegateAdapter)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
IoAdapter |
open(java.lang.String path,
boolean lockFile,
long initialLength,
boolean readOnly)
Deprecated.
|
void |
sync()
Deprecated.
|
close, delete, exists, getLength, read, seek, writepublic NonFlushingIoAdapter(IoAdapter delegateAdapter)
public IoAdapter open(java.lang.String path, boolean lockFile, long initialLength, boolean readOnly) throws Db4oIOException
open in class IoAdapterDb4oIOExceptionpublic void sync()
throws Db4oIOException
sync in class VanillaIoAdapterDb4oIOException