Package jenkins.scm.api.trait
Interface SCMSourceRequest.LazyRevisionLambda<H extends SCMHead,R extends SCMRevision,I>
- Type Parameters:
H
- the type ofSCMHead
R
- 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 aSCMRevision
for the specifiedSCMHead
using the supplied intermediate previously generated by anSCMSourceRequest.IntermediateLambda
.
-
Method Details
-
create
@NonNull R create(@NonNull H head, @Nullable I intermediate) throws IOException, InterruptedException Creates aSCMRevision
for the specifiedSCMHead
using the supplied intermediate previously generated by anSCMSourceRequest.IntermediateLambda
.- Parameters:
head
- theSCMHead
.intermediate
- the intermediate (may benull
if noSCMSourceRequest.IntermediateLambda
was provided or if theSCMSourceRequest.IntermediateLambda
can returnnull
.- Returns:
- the
SCMRevision
. - Throws:
IOException
- if there is an I/O error.InterruptedException
- if the operation was interrupted.
-