ValueManagers

The basics

For any instance of
LRUCachingMap<K,V>
there is a
LRUCachingMapConfiguration
and a
ValueManager<K,V>
instance.

Any handling of the cahce is done in the implementation of LRUCachingMap, but any handling of the values is done in the implementations of
ValueManager<K,V>
.

The interfaces looks like this, and in the implementations is where the brunt of the handling is performed.
public interface ValueManager<K,V> {
	public void restore(LRUCachingMap<K, V> map);
	public boolean isPersisted();
	public AbstractValueWrapper<K,V> constructWrapper(K key,V value);	
	public void storeValue(AbstractValueWrapper<K,V> valueWrapper,K key,V value,Date expireDateTime) throws RuntimeException;
	public void removeValue(AbstractValueWrapper<K,V> valueWrapper) throws RuntimeException;
	public V retrieveValue(AbstractValueWrapper<K,V> valueWrapper) throws RuntimeException;
	public void updateExpireTime(AbstractValueWrapper<K,V> valueWrapper,Date expireDateTime) throws RuntimeException;
	public int removeAll();
	public void flush();
	public Logger getLogger();
}

Value Managers

Type Name Inherite Persisted Key Type Value Type Link
«Interface» ValueManager<K,V> Object - K V Link
«Class» DefaultMemoryValueManager<K,V> ValueManager False K V Link
«Abstract» AbstractPersistenceValueManager<K,V> ValueManager True K V Link
«Abstract» AbstractFileValueManager<K,V> AbstractPersistenceValueManager True K V Link
«Abstract» AbstractFilenameFileValueManager<V> AbstractFileValueManager True String V Link
«Abstract» AbstractIndexedFileValueManager<K extends Serializable,V> AbstractFileValueManager True K extends Serialized V Link
«Abstract» AbstractKeyedFileValueManager<K,V extends Keyed<K>> AbstractFileValueManager True K V extends Keyed<K> Link
«Class» DefaultFilenameSerializableFileValueManager
<V extends Serializable>
AbstractFilenameFileValueManager True String V extends Serializable Link
«Class» DefaultFilenameXmlFileValueManager<V> AbstractFilenameFileValueManager True String V Link
«Class» DefaultIndexedSerializableFileValueManager
<K extends Serializable,V extends Serializable>
AbstractIndexedFileValueManager True K extends Serialized V extends Serialized Link
«Class» DefaultIndexedXmlFileValueManager
<K extends Serializable,V>
AbstractIndexedFileValueManager True K extends Serialized V Link
«Class» DefaultKeyedSerializableFileValueManager
<K extends Serializable,V extends Keyed<K> & Serializable>
AbstractKeyedFileValueManager True K extends Serialized V extends Keyed<K> & Serializable Link
«Class» DefaultKeyedXmlFileValueManager
<K extends Serializable,V extends Keyed<K>>
AbstractKeyedFileValueManager True K extends Serialized V extends Keyed<K> Link
«Class» DefaultJPAEntityValueManager
<K extends Serializable,V extends Serializable>
AbstractPersistenceValueManager True K extends Serializable V extends Serializable Link
«Class» DefaultGroupJPAEntityValueManager
<K extends Serializable,V extends Serializable>
AbstractPersistenceValueManager True K extends Serializable V extends Serializable Link