Package org.compiere.util
Class ResetCacheCallable
java.lang.Object
org.compiere.util.ResetCacheCallable
- All Implemented Interfaces:
Serializable,Callable<Integer>
Callable to reset distributed cache nodes
- Author:
- hengsin
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionResetCacheCallable(String tableName, int Record_ID) ResetCacheCallable(String tableName, String key) -
Method Summary
Modifier and TypeMethodDescriptioncall()Reset cache of local cache nodes, with the same anti-stampede/stagger protection used by the RedisICacheServiceimplementation's invalidation topic listener, so a burst of cluster-wide resets doesn't have every member reload from the DB at the same time.
-
Constructor Details
-
ResetCacheCallable
- Parameters:
tableName-key-
-
ResetCacheCallable
- Parameters:
tableName-Record_ID-
-
-
Method Details
-
call
Reset cache of local cache nodes, with the same anti-stampede/stagger protection used by the RedisICacheServiceimplementation's invalidation topic listener, so a burst of cluster-wide resets doesn't have every member reload from the DB at the same time.
-