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 Details

    • resolve

      @Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) @CheckForNull Run<?,?> resolve(@NonNull PeepholePermalink pp, @NonNull Job<?,?> job, @NonNull String id)
      Implementation of PeepholePermalink.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 of resolve(PeepholePermalink, Job, String) when searching.
      Parameters:
      b - if set, the newest build to even consider when searching