Package org.eclipse.jgit.revwalk
Class DelayRevQueue
java.lang.Object
org.eclipse.jgit.revwalk.Generator
org.eclipse.jgit.revwalk.DelayRevQueue
Delays commits to be at least
PendingGenerator.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 level pending
isn't already fully buffered.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final FIFORevQueue
private static final int
private final Generator
private int
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 -
Method Summary
Methods inherited from class org.eclipse.jgit.revwalk.Generator
shareFreeList
-
Field Details
-
OVER_SCAN
private static final int OVER_SCAN- See Also:
-
pending
-
delay
-
size
private int size
-
-
Constructor Details
-
DelayRevQueue
DelayRevQueue(Generator g)
-
-
Method Details
-
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
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
IOException
-