Interface DocHandlerCache.Loader

Enclosing interface:
DocHandlerCache
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public static interface DocHandlerCache.Loader
Computes a value to be cached, for whichever key was not already in the cache.
  • Method Summary

    Modifier and Type
    Method
    Description
    load(String key)
    Computes the value for the given key.
  • Method Details

    • load

      String load(String key) throws IOException
      Computes the value for the given key.
      Parameters:
      key - cache key
      Returns:
      the value to cache
      Throws:
      IOException - if the value could not be computed