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 theSCMRevision
instance for a specificSCMHead
using the intermediate value produced by aSCMSourceRequest.IntermediateLambda
.- See Also:
SCMSourceRequest.IntermediateLambda
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description R
create(H head, I intermediate)
Creates aSCMRevision
for the specifiedSCMHead
using the supplied intermediate previously generated by anSCMSourceRequest.IntermediateLambda
.
-
-
-
Method Detail
-
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.
-
-