Class ResetCacheCallable

java.lang.Object
org.compiere.util.ResetCacheCallable
All Implemented Interfaces:
Serializable, Callable<Integer>

public class ResetCacheCallable extends Object implements Callable<Integer>, Serializable
Callable to reset distributed cache nodes
Author:
hengsin
See Also:
  • Constructor Details

    • ResetCacheCallable

      public ResetCacheCallable(String tableName, String key)
      Parameters:
      tableName -
      key -
    • ResetCacheCallable

      public ResetCacheCallable(String tableName, int Record_ID)
      Parameters:
      tableName -
      Record_ID -
  • Method Details

    • call

      public Integer call() throws Exception
      Reset cache of local cache nodes, with the same anti-stampede/stagger protection used by the Redis ICacheService implementation's invalidation topic listener, so a burst of cluster-wide resets doesn't have every member reload from the DB at the same time.
      Specified by:
      call in interface Callable<Integer>
      Throws:
      Exception