Class CacheUtil

java.lang.Object
com.ssgllc.fish.service.util.published.CacheUtil

@Component public class CacheUtil extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
    CacheUtil(com.ssgllc.fish.service.cache.AbstractAppCacheRefreshMessageProducer appCacheRefreshMessageProducer, com.ssgllc.fish.service.cache.AbstractAppCacheMessageListener abstractAppCacheMessageListener)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    refreshCache(String cacheName)
    Sends a message to refresh the specified application cache.
    static void
    Refresh the specified application cache.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • CacheUtil

      public CacheUtil(com.ssgllc.fish.service.cache.AbstractAppCacheRefreshMessageProducer appCacheRefreshMessageProducer, com.ssgllc.fish.service.cache.AbstractAppCacheMessageListener abstractAppCacheMessageListener)
  • Method Details

    • refreshCache

      public static void refreshCache(String cacheName)
      Sends a message to refresh the specified application cache.
      Parameters:
      cacheName - The name of the cache to refresh. Valid options include:
      • "Permission"
      • "EntityConfig"
      • "ValueSet"
      • "User"
      • "Process"
      • "NickName"
      • "FrontendIndex"
      • "PrintTemplate"
      • "Custom"
      • "ALL"


      Groovy example:
      return cacheUtil.refreshCache("Custom")
      Note: This method triggers an asynchronous cache refresh via messaging and does not return a value.
    • refreshCacheSync

      public static void refreshCacheSync(String cacheName)
      Refresh the specified application cache.
      Parameters:
      cacheName - The name of the cache to refresh. Valid options include:
      • "Permission"
      • "EntityConfig"
      • "ValueSet"
      • "User"
      • "Process"
      • "NickName"
      • "FrontendIndex"
      • "PrintTemplate"
      • "Custom"


      Groovy example:
      return cacheUtil.refreshCacheSync("EntityConfig")
      Note: This method triggers synchronous cache refresh. Does not support refreshing ALL caches.