|
db4o 7.4 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface FreespaceConfiguration
interface to configure the freespace system to be used.
All methods should be called before opening database files.
If db4o is instructed to exchange the system
( useIndexSystem()
, useRamSystem()
)
this will happen on opening the database file.
By default the index-based system will be used.
Method Summary | |
---|---|
void |
discardSmallerThan(int byteCount)
tuning feature: configures the minimum size of free space slots in the database file that are to be reused. |
void |
freespaceFiller(FreespaceFiller freespaceFiller)
Configure a way to overwrite freed space in the database file with custom (for example: random) bytes. |
void |
useBTreeSystem()
configures db4o to use a BTree-based freespace system. |
void |
useIndexSystem()
Deprecated. Please use the BTree freespace system instead by calling useBTreeSystem() . |
void |
useRamSystem()
configures db4o to use a RAM-based freespace system. |
Method Detail |
---|
void discardSmallerThan(int byteCount)
Integer.MAX_VALUE
to this method to discard all free slots for
the best possible startup time.0
all space is reused
byteCount
- Slots with this size or smaller will be lost.void freespaceFiller(FreespaceFiller freespaceFiller)
freespaceFiller
- The freespace overwriting callback to usevoid useBTreeSystem()
void useIndexSystem()
useBTreeSystem()
.
void useRamSystem()
|
db4o 7.4 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |