Package | Description |
---|---|
org.apache.jena.atlas.lib | |
org.apache.jena.atlas.lib.cache |
Modifier and Type | Interface and Description |
---|---|
interface |
CacheStats<K,V>
A cache with some readable statistics
|
Modifier and Type | Method and Description |
---|---|
static <Key,Value> |
CacheFactory.createCache(float loadFactor,
int maxSize)
Create a cache which has space for up to a certain number of objects.
|
static <Key,Value> |
CacheFactory.createCache(Getter<Key,Value> getter,
int maxSize)
Create a cache which has space for upto a certain number of objects.
|
static <Key,Value> |
CacheFactory.createCache(int maxSize)
Create a cache which has space for up to a certain number of objects.
|
static <Key,Value> |
CacheFactory.createCacheUnbounded()
Create a cache which has unbounded space
|
static <Key,Value> |
CacheFactory.createCacheWithGetter(Cache<Key,Value> cache,
Getter<Key,Value> getter) |
static <Key,Value> |
CacheFactory.createNullCache()
Create a null cache
|
static <Key,Value> |
CacheFactory.createOneSlotCache()
One slot cache
|
static <Key,Value> |
CacheFactory.createSimpleCache(int size)
Create a lightweight cache (e.g.
|
static <Key,Value> |
CacheFactory.createSync(Cache<Key,Value> cache)
Add a synchronization wrapper to an existing cache
|
Modifier and Type | Method and Description |
---|---|
static <Key,Value> |
CacheFactory.createCacheWithGetter(Cache<Key,Value> cache,
Getter<Key,Value> getter) |
static <Key,Value> |
CacheFactory.createStats(Cache<Key,Value> cache)
Add a statistics wrapper to an existing cache
|
static <Key,Value> |
CacheFactory.createSync(Cache<Key,Value> cache)
Add a synchronization wrapper to an existing cache
|
Modifier and Type | Class and Description |
---|---|
class |
Cache0<K,V>
A cache that keeps nothing
|
class |
Cache1<K,V>
A one-slot cache.
|
class |
CacheLRU<K,V>
This class is not thread-safe.
|
class |
CacheSimple<K,V>
A simple fixed size cache that uses the hash code to address a slot.
|
class |
CacheStatsAtomic<Key,Value>
Capture statisics for a cache - this class is thread safe (you can read the stats while the cache is active)
|
class |
CacheStatsSimple<Key,Value>
Collect statistics for a cache - this class is not thread safe (@see{CacheStatsAtomic})
|
class |
CacheSync<Key,T> |
class |
CacheUnbounded<K,V> |
class |
CacheWithGetter<K,V>
Cache that takes a
Getter to automatically fill cache misses. |
class |
CacheWrapper<Key,T> |
Constructor and Description |
---|
CacheStatsAtomic(Cache<Key,Value> cache) |
CacheStatsSimple(Cache<Key,Value> cache) |
CacheSync(Cache<Key,T> cache) |
CacheWithGetter(Cache<K,V> cache,
Getter<K,V> getter) |
CacheWrapper(Cache<Key,T> cache) |
Licenced under the Apache License, Version 2.0