public class SoftReferenceCache extends java.lang.Object implements ExpungingCacheI, CacheI
Constructor and Description |
---|
SoftReferenceCache() |
SoftReferenceCache(CacheFetcherI _fetcher,
DependencyCalculatorI _dependencyCalculator,
java.util.Map _cache) |
SoftReferenceCache(CacheFetcherI _fetcher,
DependencyCalculatorI _dependencyCalculator,
java.util.Map _cache,
java.lang.Class _cachedClass) |
SoftReferenceCache(CacheFetcherI _fetcher,
java.util.Map _cache) |
SoftReferenceCache(CacheFetcherI _fetcher,
java.util.Map _cache,
java.lang.Class _cachedClass) |
SoftReferenceCache(java.lang.Class _cachedClass) |
SoftReferenceCache(java.util.Map _cache) |
SoftReferenceCache(java.util.Map _cache,
java.lang.Class _cachedClass) |
Modifier and Type | Method and Description |
---|---|
void |
clear() |
java.lang.Object |
computeIfAbsent(java.lang.Object key,
java.util.function.Function mappingFunction) |
boolean |
contains(java.lang.Object key) |
void |
expunge(java.lang.Object key) |
void |
expungeAll(java.lang.Object[] keys) |
void |
expungeAllForDependencies(long[] deps) |
void |
expungeAllForDependencies(java.lang.Long[] deps) |
void |
expungeForDependency(long dep) |
void |
expungeForDependency(java.lang.Long dep) |
java.lang.Object |
get(java.lang.Object key) |
java.lang.Object[] |
get(java.lang.Object[] keys) |
java.lang.Object[] |
get(java.lang.Object[] keys,
boolean dontCacheNulls) |
java.lang.Object[] |
get(java.lang.Object[] keys,
boolean dontCacheNulls,
boolean dontFetch) |
java.lang.Object |
get(java.lang.Object key,
boolean dontCacheNulls) |
java.lang.Object |
get(java.lang.Object key,
boolean dontCacheNulls,
boolean dontFetch) |
java.lang.Object |
getAt(java.lang.Object key) |
java.util.Set |
keySet() |
void |
put(java.lang.Object key,
java.lang.Object value) |
void |
put(java.lang.Object key,
java.lang.Object value,
boolean dontCacheNulls) |
void |
put(java.lang.Object key,
java.lang.Object value,
boolean dontCacheNulls,
long[] dependencies) |
void |
putAt(java.lang.Object key,
java.lang.Object value) |
java.lang.Object |
putIfAbsent(java.lang.Object key,
java.lang.Object value) |
void |
remove(java.lang.Object key) |
int |
size() |
java.util.Collection |
values() |
ExpungingSoftReference |
wrapValue(java.lang.Object key,
java.util.function.Function mappingFunction) |
ExpungingSoftReference |
wrapValue(java.lang.Object key,
java.lang.Object value) |
public SoftReferenceCache()
public SoftReferenceCache(java.lang.Class _cachedClass)
public SoftReferenceCache(java.util.Map _cache)
public SoftReferenceCache(java.util.Map _cache, java.lang.Class _cachedClass)
public SoftReferenceCache(CacheFetcherI _fetcher, DependencyCalculatorI _dependencyCalculator, java.util.Map _cache)
public SoftReferenceCache(CacheFetcherI _fetcher, DependencyCalculatorI _dependencyCalculator, java.util.Map _cache, java.lang.Class _cachedClass)
public SoftReferenceCache(CacheFetcherI _fetcher, java.util.Map _cache)
public SoftReferenceCache(CacheFetcherI _fetcher, java.util.Map _cache, java.lang.Class _cachedClass)
public java.lang.Object getAt(java.lang.Object key)
public java.lang.Object[] get(java.lang.Object[] keys, boolean dontCacheNulls)
public java.lang.Object[] get(java.lang.Object[] keys, boolean dontCacheNulls, boolean dontFetch)
public java.lang.Object get(java.lang.Object key, boolean dontCacheNulls)
public java.lang.Object get(java.lang.Object key, boolean dontCacheNulls, boolean dontFetch)
public void putAt(java.lang.Object key, java.lang.Object value)
public void put(java.lang.Object key, java.lang.Object value)
public void put(java.lang.Object key, java.lang.Object value, boolean dontCacheNulls)
public void put(java.lang.Object key, java.lang.Object value, boolean dontCacheNulls, long[] dependencies)
public void expunge(java.lang.Object key)
expunge
in interface ExpungingCacheI
public void expungeAll(java.lang.Object[] keys)
expungeAll
in interface ExpungingCacheI
public void expungeForDependency(long dep)
expungeForDependency
in interface ExpungingCacheI
public void expungeForDependency(java.lang.Long dep)
expungeForDependency
in interface ExpungingCacheI
public void expungeAllForDependencies(long[] deps)
expungeAllForDependencies
in interface ExpungingCacheI
public void expungeAllForDependencies(java.lang.Long[] deps)
expungeAllForDependencies
in interface ExpungingCacheI
public java.util.Collection values()
public java.util.Set keySet()
public int size()
public java.lang.Object putIfAbsent(java.lang.Object key, java.lang.Object value)
public java.lang.Object computeIfAbsent(java.lang.Object key, java.util.function.Function mappingFunction)
computeIfAbsent
in interface CacheI
public ExpungingSoftReference wrapValue(java.lang.Object key, java.util.function.Function mappingFunction)
public ExpungingSoftReference wrapValue(java.lang.Object key, java.lang.Object value)
Copyright © 2000-2025 OAshi S.à r.l. All Rights Reserved.