Package dap4.servlet

Class DapCache


  • public abstract class DapCache
    extends Object
    Provide an LRU cache of DSPs. It is expected (for now) that this is only used on the server side. The cache key is assumed to be the DSP object. The cache is synchronized to avoid race conditions. Note that we do not have to release because Java uses garbage collection and entries will be purged if the LRU cache is full. Singleton class
    • Field Detail

      • dspregistry

        public static dap4.core.data.DSPRegistry dspregistry
        Define a map of known DSP classes.
      • lru

        protected static List<dap4.core.data.DSP> lru
        Define an lru cache of known DSP objects: oldest first.
    • Constructor Detail

      • DapCache

        public DapCache()