Class DfsObjDatabase.PackList
- java.lang.Object
-
- org.eclipse.jgit.internal.storage.dfs.DfsObjDatabase.PackList
-
- Direct Known Subclasses:
DfsObjDatabase.PackListImpl
- Enclosing class:
- DfsObjDatabase
public abstract static class DfsObjDatabase.PackList extends java.lang.Object
Snapshot of packs scanned in a single pass.
-
-
Field Summary
Fields Modifier and Type Field Description private long
lastModified
DfsPackFile[]
packs
All known packs, sorted.DfsReftable[]
reftables
All known reftables, sorted.
-
Constructor Summary
Constructors Constructor Description PackList(DfsPackFile[] packs, DfsReftable[] reftables)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description (package private) abstract void
clearDirty()
(package private) abstract boolean
dirty()
long
getLastModified()
abstract void
markDirty()
Mark pack list as dirty.
-
-
-
Field Detail
-
packs
public final DfsPackFile[] packs
All known packs, sorted.
-
reftables
public final DfsReftable[] reftables
All known reftables, sorted.
-
lastModified
private long lastModified
-
-
Constructor Detail
-
PackList
PackList(DfsPackFile[] packs, DfsReftable[] reftables)
-
-
Method Detail
-
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.
-
-