Class ResourceStore
java.lang.Object
com._1c.g5.v8.dt.internal.compare.ResourceStore
- All Implemented Interfaces:
IResourceStore
A resource store. Current implementation relies on a LRU cache.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclear(ComparisonProcessHandle handle) Clears all resources of the specified comparison process.getResource(ComparisonProcessHandle handle, long nodeId) Returns the resource for the specified comparison process handle and node identifier.voidputResource(ComparisonProcessHandle handle, long nodeId, IResource resource) Puts the specified resource in the store for the specified comparison process handle and model node identifier.voidReduces the cache usage temporarily (depends on the implementation) to reduce overall resource strain on the system during high-load operations
-
Constructor Details
-
ResourceStore
public ResourceStore()
-
-
Method Details
-
getResource
Description copied from interface:IResourceStoreReturns the resource for the specified comparison process handle and node identifier.- Specified by:
getResourcein interfaceIResourceStore- Parameters:
handle- comparison process handle, notnullnodeId- model node identifier, notnull- Returns:
- the resource or
nullif not available
-
putResource
Description copied from interface:IResourceStorePuts the specified resource in the store for the specified comparison process handle and model node identifier.- Specified by:
putResourcein interfaceIResourceStore- Parameters:
handle- comparison process handle, notnullnodeId- model node identifier, notnullresource- the resource to put,nullto remove the resource from the store
-
clear
Description copied from interface:IResourceStoreClears all resources of the specified comparison process.- Specified by:
clearin interfaceIResourceStore- Parameters:
handle- the handle specifying the comparison process
-
reduceCacheUsageTemporarily
public void reduceCacheUsageTemporarily()Description copied from interface:IResourceStoreReduces the cache usage temporarily (depends on the implementation) to reduce overall resource strain on the system during high-load operations- Specified by:
reduceCacheUsageTemporarilyin interfaceIResourceStore
-