Interface Level1Cache

All Superinterfaces:
Map<Object,DNStateManager>
All Known Implementing Classes:
SoftRefCache, StrongRefCache, WeakRefCache

public interface Level1Cache extends Map<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.
  • Field Details

  • Method Details

    • getUnique

      Method to retrieve StateManager for the specified unique key.
      Parameters:
      key - Unique key
      Returns:
      StateManager if one is cached for this unique key
    • putUnique

      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