Class LogicalResourceIdentCacheImpl

  • All Implemented Interfaces:
    ILogicalResourceIdentCache

    public class LogicalResourceIdentCacheImpl
    extends java.lang.Object
    implements ILogicalResourceIdentCache
    Implementation of a cache used for lookups of entities related to local and external resource references
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addRecord​(LogicalResourceIdentKey key, long id)
      Add the LogicalResourceIdent key and id to the local cache
      void clearLocalMaps()
      Clear any thread-local cache maps (probably because a transaction was rolled back)
      java.lang.Long getLogicalResourceId​(int resourceTypeId, java.lang.String logicalId)
      Get the database logical_resourc_id for the given resource type and logicalId
      void reset()
      Clear the thread-local and shared caches (for test purposes)
      void resolveReferenceValues​(java.util.Collection<ResourceReferenceValueRec> values, java.util.List<ResourceReferenceValueRec> misses)
      Lookup all the database values we have cached for the given collection.
      void updateSharedMaps()
      Called after a transaction commit() to transfer all the staged (thread-local) data over to the shared LRU cache.
      • Methods inherited from class java.lang.Object

        clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait