Class LookupServiceCacheMem<K,V>
java.lang.Object
org.aksw.commons.rx.lookup.LookupServiceCacheMem<K,V>
- Type Parameters:
K-V-
- All Implemented Interfaces:
Function<Iterable<K>, io.reactivex.rxjava3.core.Flowable<Map.Entry<K,V>>>, LookupService<K, V>
A cache for already retrieved values. This is not a cache for requests.
- Author:
- raven
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionLookupServiceCacheMem(LookupService<K, V> base) LookupServiceCacheMem(LookupService<K, V> base, long maxCacheSize) LookupServiceCacheMem(LookupService<K, V> base, com.google.common.cache.Cache<K, Optional<V>> cache, com.google.common.cache.Cache<K, Object> missCache) -
Method Summary
Modifier and TypeMethodDescriptionstatic <K,V> LookupServiceCacheMem <K, V> create(LookupService<K, V> base) static <K,V> LookupServiceCacheMem <K, V> create(LookupService<K, V> base, int maxCacheSize) static <K,V> LookupServiceCacheMem <K, V> create(LookupService<K, V> base, com.google.common.cache.Cache<K, Optional<V>> hitCache, com.google.common.cache.Cache<K, Object> missCache) Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface LookupService
cache, cache, defaultForAbsentKeys, fetchItem, fetchList, fetchMap, filterKeys, mapKeys, mapNonNullValues, mapNonNullValues, mapValues, mapValues, partition, requestList, requestMap
-
Field Details
-
hitCache
-
missCache
-
-
Constructor Details
-
LookupServiceCacheMem
-
LookupServiceCacheMem
-
LookupServiceCacheMem
-
-
Method Details
-
fetchMap
-
apply
-
create
-
create
-
create
public static <K,V> LookupServiceCacheMem<K,V> create(LookupService<K, V> base, com.google.common.cache.Cache<K, Optional<V>> hitCache, com.google.common.cache.Cache<K, Object> missCache)
-