Class FailableCache<K,​V>


  • public abstract class FailableCache<K,​V>
    extends java.lang.Object
    Lazily creates (and caches) values for keys. If creating the value fails (with errors), an exception is thrown on retrieval.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private com.google.common.cache.LoadingCache<K,​java.lang.Object> delegate  
    • Constructor Summary

      Constructors 
      Constructor Description
      FailableCache()  
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      (package private) java.util.Map<K,​V> asMap()  
      protected abstract V create​(K key, Errors errors)  
      V get​(K key, Errors errors)  
      (package private) boolean remove​(K key)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait