public interface CleanupContext
Modifier and Type | Method and Description |
---|---|
Collection<UUID> |
initialReferences()
Initial references to TAR entries.
|
boolean |
shouldFollow(UUID from,
UUID to)
Determine if a reference between two entries should be followed, and if
the referenced entry should be marked.
|
boolean |
shouldReclaim(UUID id,
GCGeneration generation,
boolean referenced)
Check if an entry should be reclaimed.
|
Collection<UUID> initialReferences()
Collection
.boolean shouldReclaim(UUID id, GCGeneration generation, boolean referenced)
id
- The identifier of the entry.generation
- The generation of the entry.referenced
- If this entry was referenced directly or indirectly by
the initial set of references.true
if the entry should be reclaimed, false
otherwise.boolean shouldFollow(UUID from, UUID to)
from
- The identifier of the referencing entry.to
- The identifier of the referenced entry.true
if the reference should be followed, false
otherwise.Copyright © 2012–2020 The Apache Software Foundation. All rights reserved.