Interface IResourceStore


  • public interface IResourceStore
    A comparison object resource store.
    • Method Detail

      • getResource

        IResource getResource​(ComparisonProcessHandle handle,
                              long nodeId)
        Returns the resource for the specified comparison process handle and node identifier.
        Parameters:
        handle - comparison process handle, not null
        nodeId - model node identifier, not null
        Returns:
        the resource or null if not available
      • putResource

        void putResource​(ComparisonProcessHandle handle,
                         long nodeId,
                         IResource resource)
        Puts the specified resource in the store for the specified comparison process handle and model node identifier.
        Parameters:
        handle - comparison process handle, not null
        nodeId - model node identifier, not null
        resource - the resource to put, null to remove the resource from the store
      • clear

        void clear​(ComparisonProcessHandle handle)
        Clears all resources of the specified comparison process.
        Parameters:
        handle - the handle specifying the comparison process
      • reduceCacheUsageTemporarily

        void reduceCacheUsageTemporarily()
        Reduces the cache usage temporarily (depends on the implementation) to reduce overall resource strain on the system during high-load operations