Package | Description |
---|---|
org.glassfish.hk2.utilities.cache | |
org.glassfish.hk2.utilities.cache.internal |
Modifier and Type | Class and Description |
---|---|
class |
Cache<K,V>
Cache implementation that relies on FutureTask.
|
class |
LRUHybridCache<K,V>
Hybrid cache that allows explicit removals of included entries as well
as implicit removal of entries that have been least recently accessed.
|
Modifier and Type | Method and Description |
---|---|
Computable<K,V> |
WeakCARCache.getComputable()
The computable associated with this cache
|
Modifier and Type | Method and Description |
---|---|
static <K,V> WeakCARCache<K,V> |
CacheUtilities.createWeakCARCache(Computable<K,V> computable,
int maxSize,
boolean isWeak)
Returns a WEAKCarCache with the given computable and the given maximum value size of the cache.
|
Constructor and Description |
---|
Cache(Computable<K,V> computable)
Create new cache with given computable to compute values.
|
Cache(Computable<K,V> computable,
Cache.CycleHandler<K> cycleHandler)
Create new cache with given computable and cycle handler.
|
LRUHybridCache(int maxCacheSize,
Computable<K,HybridCacheEntry<V>> computable)
Create new cache with given computable to compute values.
|
LRUHybridCache(int maxCacheSize,
Computable<K,HybridCacheEntry<V>> computable,
LRUHybridCache.CycleHandler<K> cycleHandler)
Create new cache with given computable and cycleHandler.
|
Modifier and Type | Method and Description |
---|---|
Computable<K,V> |
WeakCARCacheImpl.getComputable() |
Constructor and Description |
---|
WeakCARCacheImpl(Computable<K,V> computable,
int maxSize,
boolean isWeak) |
Copyright © 2009-2017, Oracle and/or its affiliates. All Rights Reserved.