public interface CleanupContext
Modifier and Type | Method and Description |
---|---|
java.util.Collection<java.util.UUID> |
initialReferences()
Initial references to TAR entries.
|
boolean |
shouldFollow(java.util.UUID from,
java.util.UUID to)
Determine if a reference between two entries should be followed, and if
the referenced entry should be marked.
|
boolean |
shouldReclaim(java.util.UUID id,
GCGeneration generation,
boolean referenced)
Check if an entry should be reclaimed.
|
java.util.Collection<java.util.UUID> initialReferences()
Collection
.boolean shouldReclaim(java.util.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(java.util.UUID from, java.util.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–2022 The Apache Software Foundation. All rights reserved.