Package com.db4o.internal.caching
Class CacheStatistics<K,V>
- java.lang.Object
- 
- com.db4o.internal.caching.CacheStatistics<K,V>
 
- 
- 
Constructor SummaryConstructors Constructor Description CacheStatistics(Cache4 delegate_)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description intcalls()java.util.Iterator<V>iterator()intmisses()Vproduce(K key, Function4<K,V> producer, Procedure4<V> onDiscard)Retrieves the value associated to thekeyfrom the cache.java.lang.StringtoString()
 
- 
- 
- 
Constructor Detail- 
CacheStatisticspublic CacheStatistics(Cache4 delegate_) 
 
- 
 - 
Method Detail- 
producepublic V produce(K key, Function4<K,V> producer, Procedure4<V> onDiscard) Description copied from interface:Cache4Retrieves the value associated to thekeyfrom the cache. If the value is not yet cachedproducerwill be called to produce it. If the cache needs to discard a valuefinalizerwill be given a chance to process it.- Specified by:
- producein interface- Cache4<K,V>
- Parameters:
- key- the key for the value - must never change - cannot be null
- producer- will be called if value not yet in the cache - can only be null when the value is found in the cache
- onDiscard- will be called if a page needs to be discarded - can be null
- Returns:
- the cached value
 
 - 
iteratorpublic java.util.Iterator<V> iterator() - Specified by:
- iteratorin interface- java.lang.Iterable<K>
 
 - 
callspublic int calls() 
 - 
missespublic int misses() 
 - 
toStringpublic java.lang.String toString() - Overrides:
- toStringin class- java.lang.Object
 
 
- 
 
-