Class CacheTask

All Implemented Interfaces:
Serializable, Copyable

public class CacheTask extends Task
A task that offers caching services
See Also:
  • Field Details

    • items

      protected int items
    • itemLevelCap

      protected int[] itemLevelCap
    • replacestrategy

      protected ReplacementStrategy replacestrategy
    • retrieval

      protected boolean retrieval
  • Constructor Details

  • Method Details

    • getItems

      public int getItems()
    • setItems

      public void setItems(int items)
    • getItemLevelCap

      public int[] getItemLevelCap()
    • getTotalCapacity

      public int getTotalCapacity()
    • setItemLevelCap

      public void setItemLevelCap(int[] itemLevelCap)
    • setItemLevelCap

      public void setItemLevelCap(int itemLevelCap)
    • getReplacestrategy

      public ReplacementStrategy getReplacestrategy()
    • setReplacestrategy

      public void setReplacestrategy(ReplacementStrategy replacestrategy)
    • setRetrieval

      public void setRetrieval(boolean retrieval)
      Enable a retrieval system with delayed-hit coalescing on the cache miss path. When set, concurrent misses for the same item that arrive while a fetch (the miss-branch activity and its backend calls) is already in flight are parked and released together as delayed hits when the fetch completes, instead of each triggering an independent fetch. The retrieval subsystem is the downstream call closure of the miss activity (see the POST_CACHE precedence); no extra topology is declared here.
    • setRetrieval

      public void setRetrieval()
    • hasRetrieval

      public boolean hasRetrieval()