public interface BinaryGarbageCollector
First, inform the GC that it is started by calling
Then for all binaries to mark, call
Finally when all binaries have been marked, call
stop(boolean) to delete the
getStatus() returns information about the binaries
remaining and those that have been GCed.
|Modifier and Type||Method and Description|
Gets a unique identifier for this garbage collector.
Gets the status of the binaries to GC and of those that won't be.
Checks if a GC is in progress.
Marks a binary as being in use.
Starts the garbage collection process.
Stops the garbage collection process and deletes all binaries that have not been marked (sweep).
After this, all active binaries must be fed to the
void mark(String digest)
digest- the binary's digest
void stop(boolean delete)
trueif actual deletion must be performed,
falseif the binaries to delete should simply be counted in the status
A GC is in progress is
#start has been called but not
It's only useful to call this from a separate thread from the one that
trueif a GC is in progress
Copyright © 2013 Nuxeo SA. All Rights Reserved.