|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openjena.atlas.lib.CacheFactory
public class CacheFactory
| Constructor Summary | |
|---|---|
CacheFactory()
|
|
| Method Summary | ||
|---|---|---|
static
|
createCache(float loadFactor,
int maxSize)
Create a cache which has space for up to a certain number of objects. |
|
static
|
createCache(Getter<Key,Value> getter,
int maxSize)
Create a cache which has space for upto a certain number of objects. |
|
static
|
createCache(int maxSize)
Create a cache which has space for up to a certain number of objects. |
|
static
|
createCacheSet(int size)
Create set-cache, rather than a map-cache. |
|
static
|
createCacheUnbounded()
Create a cache which has unbounded space |
|
static
|
createCacheWithGetter(Cache<Key,Value> cache,
Getter<Key,Value> getter)
|
|
static
|
createNullCache()
Create a null cache |
|
static
|
createOneSlotCache()
One slot cache |
|
static
|
createSimpleCache(int size)
Create a lightweight cache (e.g. |
|
static
|
createStats(Cache<Key,Value> cache)
Add a statistics wrapper to an existing cache |
|
static
|
createSync(Cache<Key,Value> cache)
Add a synchronization wrapper to an existing cache |
|
static
|
createSync(CacheSet<Obj> cache)
Add a synchronization wrapper to an existing set-cache |
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CacheFactory()
| Method Detail |
|---|
public static <Key,Value> Cache<Key,Value> createCache(int maxSize)
public static <Key,Value> Cache<Key,Value> createCache(float loadFactor,
int maxSize)
public static <Key,Value> Cache<Key,Value> createCache(Getter<Key,Value> getter,
int maxSize)
public static <Key,Value> Cache<Key,Value> createNullCache()
public static <Key,Value> Cache<Key,Value> createCacheUnbounded()
public static <Key,Value> Cache<Key,Value> createCacheWithGetter(Cache<Key,Value> cache,
Getter<Key,Value> getter)
public static <Key,Value> Cache<Key,Value> createSimpleCache(int size)
public static <Key,Value> Cache<Key,Value> createOneSlotCache()
public static <Key,Value> CacheStats<Key,Value> createStats(Cache<Key,Value> cache)
public static <Key,Value> Cache<Key,Value> createSync(Cache<Key,Value> cache)
public static <Obj> CacheSet<Obj> createCacheSet(int size)
Poolpublic static <Obj> CacheSet<Obj> createSync(CacheSet<Obj> cache)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||