Class ModelCache.Cached

java.lang.Object
se.diabol.jenkins.pipeline.cache.ModelCache.Cached
Enclosing class:
ModelCache

public static final class ModelCache.Cached extends Object
A cached model as it is served: its components, a version that changes with every recomputation, which conditional requests compare, and the exported form per viewer, computed once and kept with the model.
  • Method Details

    • components

      public List<Component> components()
    • version

      public long version()
    • export

      public byte[] export(String viewer, Supplier<byte[]> exporter)
      The exported form of the model for the viewer, from the exporter the first time only.