Package org.eclipse.jgit.revwalk
Class DelayRevQueue
- java.lang.Object
-
- org.eclipse.jgit.revwalk.Generator
-
- org.eclipse.jgit.revwalk.DelayRevQueue
-
final class DelayRevQueue extends Generator
Delays commits to be at leastPendingGenerator.OVER_SCAN
late.This helps to "fix up" weird corner cases resulting from clock skew, by slowing down what we produce to the caller we get a better chance to ensure PendingGenerator reached back far enough in the graph to correctly mark commits
RevWalk.UNINTERESTING
if necessary.This generator should appear before
FixUninterestingGenerator
if the lower levelpending
isn't already fully buffered.
-
-
Field Summary
Fields Modifier and Type Field Description private FIFORevQueue
delay
private static int
OVER_SCAN
private Generator
pending
private int
size
-
Fields inherited from class org.eclipse.jgit.revwalk.Generator
firstParent, HAS_REWRITE, HAS_UNINTERESTING, NEEDS_REWRITE, SORT_COMMIT_TIME_DESC, SORT_TOPO
-
-
Constructor Summary
Constructors Constructor Description DelayRevQueue(Generator g)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) RevCommit
next()
Return the next commit to the application, or the next generator.(package private) int
outputType()
Obtain flags describing the output behavior of this generator.-
Methods inherited from class org.eclipse.jgit.revwalk.Generator
shareFreeList
-
-
-
-
Field Detail
-
OVER_SCAN
private static final int OVER_SCAN
- See Also:
- Constant Field Values
-
pending
private final Generator pending
-
delay
private final FIFORevQueue delay
-
size
private int size
-
-
Constructor Detail
-
DelayRevQueue
DelayRevQueue(Generator g)
-
-
Method Detail
-
outputType
int outputType()
Description copied from class:Generator
Obtain flags describing the output behavior of this generator.- Specified by:
outputType
in classGenerator
- Returns:
- one or more of the constants declared in this class, describing how this generator produces its results.
-
next
RevCommit next() throws MissingObjectException, IncorrectObjectTypeException, java.io.IOException
Description copied from class:Generator
Return the next commit to the application, or the next generator.- Specified by:
next
in classGenerator
- Returns:
- next available commit; null if no more are to be returned.
- Throws:
MissingObjectException
IncorrectObjectTypeException
java.io.IOException
-
-