org.openjena.atlas.lib
Class CacheFactory
java.lang.Object
org.openjena.atlas.lib.CacheFactory
public class CacheFactory
- extends java.lang.Object
|
Method Summary |
static
<Key,Value>
Cache<Key,Value> |
|
createCache(float loadFactor,
int maxSize)
|
static
<Key,Value>
Cache<Key,Value> |
|
createCache(Getter<Key,Value> getter,
int maxSize)
|
static
<Key,Value>
Cache<Key,Value> |
|
createCache(int maxSize)
|
static
|
createCacheSet(int size)
|
static
<Key,Value>
Cache<Key,Value> |
|
createCacheUnbounded()
|
static
<Key,Value>
Cache<Key,Value> |
|
createCacheWithGetter(Cache<Key,Value> cache,
Getter<Key,Value> getter)
|
static
<Key,Value>
Cache<Key,Value> |
|
createOneSlotCache()
One slot cache |
static
<Key,Value>
Cache<Key,Value> |
|
createSimpleCache(int size)
|
static
|
createStats(Cache<Key,Value> cache)
|
static
<Key,Value>
Cache<Key,Value> |
|
createSync(Cache<Key,Value> cache)
|
static
|
createSync(CacheSet<Obj> cache)
|
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CacheFactory
public CacheFactory()
createCache
public static <Key,Value> Cache<Key,Value> createCache(Getter<Key,Value> getter,
int maxSize)
createCache
public static <Key,Value> Cache<Key,Value> createCache(int maxSize)
createCacheUnbounded
public static <Key,Value> Cache<Key,Value> createCacheUnbounded()
createCache
public static <Key,Value> Cache<Key,Value> createCache(float loadFactor,
int maxSize)
createCacheWithGetter
public static <Key,Value> Cache<Key,Value> createCacheWithGetter(Cache<Key,Value> cache,
Getter<Key,Value> getter)
createSimpleCache
public static <Key,Value> Cache<Key,Value> createSimpleCache(int size)
createOneSlotCache
public static <Key,Value> Cache<Key,Value> createOneSlotCache()
- One slot cache
createStats
public static <Key,Value> CacheStats<Key,Value> createStats(Cache<Key,Value> cache)
createSync
public static <Key,Value> Cache<Key,Value> createSync(Cache<Key,Value> cache)
createCacheSet
public static <Obj> CacheSet<Obj> createCacheSet(int size)
createSync
public static <Obj> CacheSet<Obj> createSync(CacheSet<Obj> cache)
Copyright © 2004, 2005, 2006, 2007, 2008, 2009 Hewlett-Packard Development Company, LP