Class DfsObjDatabase.PackList
java.lang.Object
org.eclipse.jgit.internal.storage.dfs.DfsObjDatabase.PackList
- Direct Known Subclasses:
DfsObjDatabase.PackListImpl
- Enclosing class:
DfsObjDatabase
Snapshot of packs scanned in a single pass.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate long
final DfsPackFile[]
All known packs, sorted.final DfsReftable[]
All known reftables, sorted. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) abstract void
(package private) abstract boolean
dirty()
long
abstract void
Mark pack list as dirty.
-
Field Details
-
packs
All known packs, sorted. -
reftables
All known reftables, sorted. -
lastModified
private long lastModified
-
-
Constructor Details
-
PackList
PackList(DfsPackFile[] packs, DfsReftable[] reftables)
-
-
Method Details
-
getLastModified
public long getLastModified()- Returns:
- last modified time of all packs, in milliseconds.
-
dirty
abstract boolean dirty() -
clearDirty
abstract void clearDirty() -
markDirty
public abstract void markDirty()Mark pack list as dirty.Used when the caller knows that new data might have been written to the repository that could invalidate open readers depending on this pack list, for example if refs are newly scanned.
-