Top Description Fields Constructors Methods
org.eclipse.jgit.revwalk

pack-priv final Class DelayRevQueue

extends Generator
Class Inheritance
Imports
java.io.IOException, org.eclipse.jgit.errors.IncorrectObjectTypeException, .MissingObjectException

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

Modifier and TypeField and Description
private final FIFORevQueue
private static final int
private final Generator
private int
Inherited from org.eclipse.jgit.revwalk.Generator:
firstParentHAS_REWRITEHAS_UNINTERESTINGNEEDS_REWRITESORT_COMMIT_TIME_DESCSORT_TOPO

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
pack-priv RevCommit
next()

Implements abstract org.eclipse.jgit.revwalk.Generator.next.

Return the next commit to the application, or the next generator.

pack-priv int
outputType()

Implements abstract org.eclipse.jgit.revwalk.Generator.outputType.

Obtain flags describing the output behavior of this generator.

Inherited from org.eclipse.jgit.revwalk.Generator:
shareFreeList

Field Detail

delayback to summary
private final FIFORevQueue delay
OVER_SCANback to summary
private static final int OVER_SCAN
pendingback to summary
private final Generator pending
sizeback to summary
private int size

Constructor Detail

DelayRevQueueback to summary
pack-priv DelayRevQueue(Generator g)

Method Detail

nextback to summary
pack-priv RevCommit next() throws MissingObjectException, IncorrectObjectTypeException, IOException

Implements abstract org.eclipse.jgit.revwalk.Generator.next.

Doc from org.eclipse.jgit.revwalk.Generator.next.

Return the next commit to the application, or the next generator.

Returns:RevCommit

next available commit; null if no more are to be returned.

Annotations
@Override
Exceptions
MissingObjectException:
if an object is missing
IncorrectObjectTypeException:
if an object has an unexpected type
IOException:
if an IO error occurred
outputTypeback to summary
pack-priv int outputType()

Implements abstract org.eclipse.jgit.revwalk.Generator.outputType.

Doc from org.eclipse.jgit.revwalk.Generator.outputType.

Obtain flags describing the output behavior of this generator.

Returns:int

one or more of the constants declared in this class, describing how this generator produces its results.

Annotations
@Override