Class CacheUtils.AppEngineEnvironmentCacheLoader<K,​V>

  • All Implemented Interfaces:
    com.github.benmanes.caffeine.cache.AsyncCacheLoader<K,​V>, com.github.benmanes.caffeine.cache.CacheLoader<K,​V>
    Enclosing class:
    CacheUtils

    public abstract static class CacheUtils.AppEngineEnvironmentCacheLoader<K,​V>
    extends java.lang.Object
    implements com.github.benmanes.caffeine.cache.CacheLoader<K,​V>
    A CacheLoader that automatically masquerade the background thread where the refresh action runs in to be an GAE thread.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      @Nullable V reload​(@NonNull K key, @NonNull V oldValue)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface com.github.benmanes.caffeine.cache.CacheLoader

        asyncLoad, asyncLoadAll, asyncReload, load, loadAll
    • Constructor Detail

      • AppEngineEnvironmentCacheLoader

        public AppEngineEnvironmentCacheLoader()
    • Method Detail

      • reload

        public @Nullable V reload​(@NonNull K key,
                                  @NonNull V oldValue)
                           throws java.lang.Exception
        Specified by:
        reload in interface com.github.benmanes.caffeine.cache.CacheLoader<K,​V>
        Throws:
        java.lang.Exception