Class AbstractMTAsynchronouslyRefreshedCache<T>

    • Constructor Detail

      • AbstractMTAsynchronouslyRefreshedCache

        public AbstractMTAsynchronouslyRefreshedCache()
    • Method Detail

      • setTenantService

        public void setTenantService​(TenantService tenantService)
        Parameters:
        tenantService - the tenantService to set
      • get

        public T get()
        Description copied from interface: RefreshableCache
        Get the cache. If there is no cache value this call will block. If the underlying cache is being refreshed, the old cache value will be returned until the refresh is complete.
        Specified by:
        get in interface RefreshableCache<T>
        Returns:
        T
      • forceInChangesForThisUncommittedTransaction

        public void forceInChangesForThisUncommittedTransaction()
      • buildCache

        protected abstract T buildCache​(String tenantId)
        Build the cache entry for the specific tenant. This method is called in a thread-safe manner i.e. it is only ever called by a single thread.
        Specified by:
        buildCache in class AbstractAsynchronouslyRefreshedCache<T>