Interface Loader<K,V,C>
- Type Parameters:
K- the key type parameterV- the value type parameterC- the context type parameter
public interface Loader<K,V,C>
The loader interface is used by the future cache to retrieves the value from the key when it does not exist.
- Version:
- $Revision$
- Author:
- Julien Viet
-
Method Summary
-
Method Details
-
retrieve
Retrieves the value from the key within the specified context. If the resource is not found then the value null must be returned.- Parameters:
context- the contextkey- the key- Returns:
- the value
- Throws:
Exception- any exception that would prevent the value to be loaded
-