com.supermap.services

Interface ServerCacheSupport

  • All Superinterfaces:
    java.io.Serializable


    public interface ServerCacheSupport
    extends java.io.Serializable
    

    Cache expiration policy interface.

    • Field Summary

      Fields 
      Modifier and Type Field and Description
      static java.lang.ThreadLocal<ServerCacheSupport> cacheSupport
      The cache expiration policy that holds the request for the current thread.
    • Method Summary

      Methods 
      Modifier and Type Method and Description
      boolean isCacheExpired()
      Determine whether the cache expires.
      void notifyCacheRemoved()
      The event to notify the cache has been removed.
    • Field Detail

      • cacheSupport

        static final java.lang.ThreadLocal<ServerCacheSupport> cacheSupport
        

        The cache expiration policy that holds the request for the current thread. The policy is set at the service level and is called in the server.

    • Method Detail

      • isCacheExpired

        boolean isCacheExpired()
        

        Determine whether the cache expires.

        Returns:
        cache expires returns true, otherwise returns false.
      • notifyCacheRemoved

        void notifyCacheRemoved()
        

        The event to notify the cache has been removed.