| com.bm.ejb3guice.internal.ReferenceCache
Method Summary | |
abstract protected V | create(K key) Override to lazy load values. | V | create(FutureValue<V> futureValue, K key) | public static ReferenceCache<K, V> | of(ReferenceType keyReferenceType, ReferenceType valueReferenceType, Function<? super K, ? extends V> function) Returns a
ReferenceCache delegating to the specified
function . |
ReferenceCache | public ReferenceCache()(Code) | | Equivalent to
new ReferenceCache(STRONG, STRONG) .
|
create | abstract protected V create(K key)(Code) | | Override to lazy load values. Use as an alternative to
ReferenceCache.put(Object,Object) . Invoked by getter if value isn't already cached.
Must not return
null . This method will not be called again until
the garbage collector reclaims the returned value.
|
create | V create(FutureValue<V> futureValue, K key)(Code) | | |
|
|