Interface AsyncCacheLoader.Context<K,​V>

  • Enclosing interface:
    AsyncCacheLoader<K,​V>

    public static interface AsyncCacheLoader.Context<K,​V>
    Relevant context information for a single load request.

    Rationale: Instead of a rather long parameter list, we define an interface. This allows us later to add some information without breaking implementations of the AsyncCacheLoader. The context does not include the cache, since the loader should not depend on it and do any other operations on the cache while loading.