Interface Level1Cache

  • All Superinterfaces:
    java.util.Map<java.lang.Object,​DNStateManager>
    All Known Implementing Classes:
    SoftRefCache, StrongRefCache, WeakRefCache

    public interface Level1Cache
    extends java.util.Map<java.lang.Object,​DNStateManager>
    Provides an interface for Level 1 caches. Currently we just require a Map, but interfacing this provides the flexibility to being able to add requirements in the future.
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface java.util.Map

        java.util.Map.Entry<K extends java.lang.Object,​V extends java.lang.Object>
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String NONE_NAME  
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      DNStateManager getUnique​(CacheUniqueKey key)
      Method to retrieve StateManager for the specified unique key.
      java.lang.Object putUnique​(CacheUniqueKey key, DNStateManager sm)
      Method to store a StateManager for this unique key.
      • Methods inherited from interface java.util.Map

        clear, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, equals, forEach, get, getOrDefault, hashCode, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
    • Method Detail

      • getUnique

        DNStateManager getUnique​(CacheUniqueKey key)
        Method to retrieve StateManager for the specified unique key.
        Parameters:
        key - Unique key
        Returns:
        StateManager if one is cached for this unique key
      • putUnique

        java.lang.Object putUnique​(CacheUniqueKey key,
                                   DNStateManager sm)
        Method to store a StateManager for this unique key.
        Parameters:
        key - The unique key
        sm - StateManager
        Returns:
        The previous StateManager for this unique key if one was present, otherwise null