Package jenkins.scm.api.trait
Interface SCMSourceRequest.LazyRevisionLambda<H extends SCMHead,R extends SCMRevision,I>
- Type Parameters:
H- the type ofSCMHeadR- the type ofSCMRevision.I- the type of intermediate value produced by theSCMSourceRequest.IntermediateLambda.
- Enclosing class:
- SCMSourceRequest
public static interface SCMSourceRequest.LazyRevisionLambda<H extends SCMHead,R extends SCMRevision,I>
A lambda that will create the
SCMRevision instance for a specific SCMHead using the intermediate
value produced by a SCMSourceRequest.IntermediateLambda.- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionCreates aSCMRevisionfor the specifiedSCMHeadusing the supplied intermediate previously generated by anSCMSourceRequest.IntermediateLambda.
-
Method Details
-
create
@NonNull R create(@NonNull H head, @Nullable I intermediate) throws IOException, InterruptedException Creates aSCMRevisionfor the specifiedSCMHeadusing the supplied intermediate previously generated by anSCMSourceRequest.IntermediateLambda.- Parameters:
head- theSCMHead.intermediate- the intermediate (may benullif noSCMSourceRequest.IntermediateLambdawas provided or if theSCMSourceRequest.IntermediateLambdacan returnnull.- Returns:
- the
SCMRevision. - Throws:
IOException- if there is an I/O error.InterruptedException- if the operation was interrupted.
-