Package jenkins.model
Interface PeepholePermalink.Cache
- All Superinterfaces:
ExtensionPoint
- All Known Implementing Classes:
PeepholePermalink.DefaultCache
- Enclosing class:
PeepholePermalink
@Restricted(org.kohsuke.accmod.restrictions.Beta.class)
public static interface PeepholePermalink.Cache
extends ExtensionPoint
Persistable cache of peephole permalink targets.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceThe cache entry for this target is present.static final recordThere is known to be no matching build.static interfaceCacheable target of a permalink.static final recordA matching build, indicated byRun.getNumber().static final recordThe cache entry for this target is missing.Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final PeepholePermalink.Cache.NoneSingleton ofPeepholePermalink.Cache.None.static final PeepholePermalink.Cache.Unknown -
Method Summary
Modifier and TypeMethodDescriptionLooks for any existing cache hit.voidput(Job<?, ?> job, String id, PeepholePermalink.Cache.Known target) Updates the cache.
-
Field Details
-
UNKNOWN
-
NONE
Singleton ofPeepholePermalink.Cache.None.
-
-
Method Details
-
get
Looks for any existing cache hit.- Parameters:
id-PermalinkProjectAction.Permalink.getId()- Returns:
PeepholePermalink.Cache.SomeorNONEorUNKNOWN
-
put
Updates the cache. Note that this may be called not just when a build completes or is deleted (meaning that the logical value of the cache has changed), but also whenPeepholePermalink.resolve(hudson.model.Job<?, ?>)has failed to find a cached value (or determined that a previously cached value is in fact invalid).- Parameters:
id-PermalinkProjectAction.Permalink.getId()target-PeepholePermalink.Cache.SomeorNONE
-