public interface ObjectCache
Modifier and Type | Method and Description |
---|---|
void |
release(String key) |
void |
remove(String key)
Removes the specified key from the object cache.
|
<T> T |
retrieve(String key,
Callable<T> fn)
Retrieve object from cache.
|
<T> Future<T> |
retrieveAsync(String key,
Callable<T> fn)
Retrieve object from cache asynchronously.
|
void release(String key)
key
- <T> T retrieve(String key, Callable<T> fn) throws HiveException
T
- key
- fn
- function to generate the object if it's not thereHiveException
<T> Future<T> retrieveAsync(String key, Callable<T> fn) throws HiveException
T
- key
- fn
- function to generate the object if it's not thereHiveException
void remove(String key)
key
- - key to be removedCopyright © 2017 The Apache Software Foundation. All rights reserved.