Package com._1c.g5.v8.dt.compare.core
Interface IResourceStore
-
public interface IResourceStore
A comparison object resource store.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
clear(ComparisonProcessHandle handle)
Clears all resources of the specified comparison process.IResource
getResource(ComparisonProcessHandle handle, long nodeId)
Returns the resource for the specified comparison process handle and node identifier.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.void
reduceCacheUsageTemporarily()
Reduces the cache usage temporarily (depends on the implementation) to reduce overall resource strain on the system during high-load operations
-
-
-
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, notnull
nodeId
- model node identifier, notnull
- 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, notnull
nodeId
- model node identifier, notnull
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
-
-