Package | Description |
---|---|
dk.heick.caching | |
dk.heick.caching.persistences.file | |
dk.heick.caching.persistences.file.serializable | |
dk.heick.caching.persistences.file.xml |
Modifier and Type | Method and Description |
---|---|
static <K extends Serializable,V extends Keyed<K> & Serializable> |
LRUCachingMapFactory.createKeyedSerializedCache(LRUCachingMapConfiguration configuration,
CachingDirectory cachingDirectory,
PersistencesRestoreMethod persistencesRestoreMethod)
Constructs a keyed serializable file cache.
|
static <K extends Serializable,V extends Keyed<K>> |
LRUCachingMapFactory.createKeyedXmlCache(LRUCachingMapConfiguration configuration,
CachingDirectory cachingDirectory,
Class<V> xmlClazz,
PersistencesRestoreMethod persistencesRestoreMethod)
Constructs a keyed XML file cache.
|
Modifier and Type | Class and Description |
---|---|
class |
AbstractKeyedFileValueManager<K,V extends Keyed<K>>
A persisted file valuemanager which holds the Key to Filein the value it self.
This ValueManager works that all keys is stored in the file and the filename gets a random UUID. This makes it easy just to persist a Object type, because the object it selfs contains the Key, but reload/restore is expensive. |
Modifier and Type | Class and Description |
---|---|
class |
DefaultKeyedSerializableFileValueManager<K extends Serializable,V extends Keyed<K> & Serializable>
This ValueManager will serialize and deserialize the value V to a file where the key is stored in the Value.
This requries that V implements Serializable and Keyed . |
Modifier and Type | Class and Description |
---|---|
class |
DefaultKeyedXmlFileValueManager<K extends Serializable,V extends Keyed<K>>
This ValueManager will save and load the value V to a file using JAXB.
|
Copyright © 2016. All rights reserved.