Top Description Constructors Methods
com.mchange.v1.cachedstore

pack-priv Class SoftReferenceCachedStore

extends ValueTransformingCachedStore
Class Inheritance
Imports
java.lang.ref.Reference, .SoftReference, java.util.HashMap, .Map, .Iterator

by default, this class is NOT thread safe!!! use the synchronized wrappers defined in CachedStoreUtils for multithreaded situations!
See Also
CachedStoreUtils#synchronizedCachedStore, CachedStoreUtils#synchronizedTweakableCachedStore

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
protected Object
protected Object
Inherited from com.mchange.v1.cachedstore.ValueTransformingCachedStore:
getCachedValueremoveFromCachesetCachedValue

Constructor Detail

SoftReferenceCachedStoreback to summary
public SoftReferenceCachedStore(CachedStore.Manager manager)

Method Detail

toCacheValueback to summary
protected Object toCacheValue(Object userValue)

Overrides com.mchange.v1.cachedstore.ValueTransformingCachedStore.toCacheValue.

toUserValueback to summary
protected Object toUserValue(Object cacheValue)

Overrides com.mchange.v1.cachedstore.ValueTransformingCachedStore.toUserValue.