Package com.db4o.internal.caching
Class NullCache4<K,V>
- java.lang.Object
-
- com.db4o.internal.caching.NullCache4<K,V>
-
-
Constructor Summary
Constructors Constructor Description NullCache4()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Iterator<V>
iterator()
V
produce(K key, Function4<K,V> producer, Procedure4<V> onDiscard)
Retrieves the value associated to thekey
from the cache.
-
-
-
Method Detail
-
produce
public V produce(K key, Function4<K,V> producer, Procedure4<V> onDiscard)
Description copied from interface:Cache4
Retrieves the value associated to thekey
from the cache. If the value is not yet cachedproducer
will be called to produce it. If the cache needs to discard a valuefinalizer
will be given a chance to process it.- Specified by:
produce
in interfaceCache4<K,V>
- Parameters:
key
- the key for the value - must never change - cannot be nullproducer
- will be called if value not yet in the cache - can only be null when the value is found in the cacheonDiscard
- will be called if a page needs to be discarded - can be null- Returns:
- the cached value
-
-