Both space reclamation and compaction can be done incrementally, i.e. broken down into smaller steps. This allows an application to alternate reclamation and compaction with other processing and remain responsive to other events.
To do this, construct an object of type
Each stage of space reclamation and compaction is performed or initiated by calling the appropriate variant of
At any time during space reclamation or compaction, the
Compaction and normal access to the store interact in the following ways:
if a compaction step is in progress, committing the store causes the compaction step to be abandoned and to complete or leave with
a compaction step which needs to physically move a stream, completes or leaves with
Once compaction is complete, the store must be committed.
Doing an incremental space reclamation or compaction asynchronously requires the use of active objects.
Both space reclamation and compaction can be done incrementally, i.e. broken +down into smaller steps. This allows an application to alternate reclamation +and compaction with other processing and remain responsive to other events.
+To do this, construct an object of type
Each stage of space reclamation and compaction is performed or initiated
+by calling the appropriate variant of
At any time during space reclamation or compaction, the
Compaction and normal access to the store interact in the following ways:
+if a compaction step
+is in progress, committing the store causes the compaction step to be abandoned
+and to complete or leave with
a compaction step which
+needs to physically move a stream, completes or leaves with
Once compaction is complete, the store must be committed.
+Doing an incremental space reclamation or compaction asynchronously requires +the use of active objects.
+