Package jenkins.scm.api.trait
Interface SCMSourceRequest.ProbeLambda<H extends SCMHead,I>
- Type Parameters:
H- the type ofSCMHeadI- the type of side-value used to create the probe (typically aSCMRevisionbut if that is costly to instantiate it may be the return value from aSCMSourceRequest.IntermediateLambda.
- Enclosing class:
- SCMSourceRequest
public static interface SCMSourceRequest.ProbeLambda<H extends SCMHead,I>
A lambda that will create a
SCMSourceCriteria.Probe (ideally a SCMProbe but for legacy code
migration we use SCMSourceCriteria.Probe) for a specified SCMHead and either a
SCMRevision or some other type created by a SCMSourceRequest.IntermediateLambda.-
Method Summary
Modifier and TypeMethodDescriptionCreates aSCMSourceCriteria.Probe(ideally aSCMProbe) for the specifiedSCMHeadandSCMRevisionproduced bySCMSourceRequest.RevisionLambdaor intermediate produced bySCMSourceRequest.IntermediateLambda
-
Method Details
-
create
@NonNull SCMSourceCriteria.Probe create(@NonNull H head, @Nullable I revisionInfo) throws IOException, InterruptedException Creates aSCMSourceCriteria.Probe(ideally aSCMProbe) for the specifiedSCMHeadandSCMRevisionproduced bySCMSourceRequest.RevisionLambdaor intermediate produced bySCMSourceRequest.IntermediateLambda- Parameters:
head- theSCMHead.revisionInfo- depending on the type ofSCMSourceRequest.ProbeLambdathis is either aSCMRevisionproduced by aSCMSourceRequest.RevisionLambdaor an intermediate produced by aSCMSourceRequest.IntermediateLambda. It could also benullif the implementation has captured sufficient information to create theSCMSourceCriteria.Probe.- Returns:
- ideally a
SCMProbe. - Throws:
IOException- if there is an I/O error.InterruptedException- if the operation was interrupted.
-