Interface Cache.Loader<K,V>

Enclosing class:
Cache<K,V>

public static interface Cache.Loader<K,V>
Computes the value for a key that is absent.
  • Method Summary

    Modifier and Type
    Method
    Description
    load(K key)
    The value, or null for "no value"; null is not stored.
  • Method Details

    • load

      V load(K key) throws Exception
      The value, or null for "no value"; null is not stored.
      Throws:
      Exception