| Modifier and Type | Interface and Description |
|---|---|
static interface |
NodeCache.Loader
Interface for loading nodes on cache miss.
|
| Modifier and Type | Method and Description |
|---|---|
Object |
get(int key,
NodeCache.Loader loader)
Get a value from the cache, loading it if necessary.
|
Object get(int key, NodeCache.Loader loader) throws IOException
key - the cache keyloader - the loader to use if the key is not in cacheIOException - if loading fails