Uses of Interface
org.apache.jena.atlas.lib.Cache
Packages that use Cache
-
Uses of Cache in org.apache.jena.atlas.lib
Methods in org.apache.jena.atlas.lib that return CacheModifier and TypeMethodDescriptionstatic <Key,Value>
Cache<Key,Value> CacheFactory.createCache(int maxSize) Create a cache which has space for up to a certain number of objects.static <Key,Value>
Cache<Key,Value> CacheFactory.createCache(int maxSize, BiConsumer<Key, Value> dropHandler) Create a cache which has space for up to a certain number of objects.static <Key,Value>
Cache<Key,Value> CacheFactory.createNullCache()Create a null cache.static <Key,Value>
Cache<Key,Value> CacheFactory.createOneSlotCache()One slot cachestatic <Key,Value>
Cache<Key,Value> CacheFactory.createSimpleCache(int size) Create a lightweight cache (e.g.static <Key,Value>
Cache<Key,Value> CacheFactory.wrap(com.github.benmanes.caffeine.cache.Cache<Key, Value> caffeine) Wrap an existing Caffeine cache -
Uses of Cache in org.apache.jena.atlas.lib.cache
Classes in org.apache.jena.atlas.lib.cache that implement CacheModifier and TypeClassDescriptionfinal classCache0<K,V> A cache that keeps nothingclassCache1<K,V> A one-slot cache.final classCacheCaffeine<K,V> Wrapper around a com.github.benmanes.caffeineclassCacheSimple<K,V> A simple fixed size cache that uses the hash code to address a slot.classCacheWrapper<Key,T> Methods in org.apache.jena.atlas.lib.cache with parameters of type CacheModifier and TypeMethodDescriptionstatic <K,V> V CacheSimple.getOrFillNoSync(Cache<K, V> cache, K key, Callable<V> callable) Implementation of getOrFill based on Cache.get and Cache.put This function is not thread safe.static <K,V> V CacheSimple.getOrFillNoSync(Cache<K, V> cache, K key, Function<K, V> function) Implementation of getOrFill based on Cache.get and Cache.put This function is not thread safe.Constructors in org.apache.jena.atlas.lib.cache with parameters of type CacheModifierConstructorDescriptionCacheSetImpl(Cache<T, Object> cache) CacheWrapper(Cache<Key, T> cache)