Package jenkins.model
Interface PeepholePermalink.Cache.PermalinkTarget
- All Superinterfaces:
Serializable
- All Known Subinterfaces:
PeepholePermalink.Cache.Known
- All Known Implementing Classes:
PeepholePermalink.Cache.None
,PeepholePermalink.Cache.Some
,PeepholePermalink.Cache.Unknown
- Enclosing interface:
- PeepholePermalink.Cache
public static sealed interface PeepholePermalink.Cache.PermalinkTarget
extends Serializable
permits PeepholePermalink.Cache.Unknown, PeepholePermalink.Cache.Known
Cacheable target of a permalink.
-
Method Summary
Modifier and TypeMethodDescriptionRun<?,
?> resolve
(PeepholePermalink pp, Job<?, ?> job, String id) Implementation ofPeepholePermalink.resolve(Job)
.default Run<?,
?> search
(PeepholePermalink pp, Job<?, ?> job, String id, Run<?, ?> b) Partial implementation ofresolve(PeepholePermalink, Job, String)
when searching.
-
Method Details
-
resolve
@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) @CheckForNull Run<?,?> resolve(@NonNull PeepholePermalink pp, @NonNull Job<?, ?> job, @NonNull String id) Implementation ofPeepholePermalink.resolve(Job)
. This may update the cache if it was missing or found to be invalid. -
search
@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) @CheckForNull default Run<?,?> search(@NonNull PeepholePermalink pp, @NonNull Job<?, ?> job, @NonNull String id, @CheckForNull Run<?, ?> b) Partial implementation ofresolve(PeepholePermalink, Job, String)
when searching.- Parameters:
b
- if set, the newest build to even consider when searching
-