Package | Description |
---|---|
dk.heick.caching | |
dk.heick.caching.memory | |
dk.heick.caching.persistences.file | |
dk.heick.caching.persistences.file.reference |
Modifier and Type | Class and Description |
---|---|
class |
DefaultLRUCachingMapConfiguration
The default implementation of LRUCachingMapConfiguration.
|
Modifier and Type | Method and Description |
---|---|
LRUCachingMapConfiguration |
LRUCachingMap.getConfiguration()
Gets the configuration instance
|
LRUCachingMapConfiguration |
DefaultLRUCachingMap.getConfiguration() |
LRUCachingMapConfiguration |
LRUCachingMapConfiguration.setCleanupIntervalTime(long cleanupIntervalTime)
Set the cleanup interval in milliseconds.
|
LRUCachingMapConfiguration |
LRUCachingMapConfiguration.setExpireTime(long expireTime)
Set the expireTime for a key in milliseconds.
|
LRUCachingMapConfiguration |
LRUCachingMapConfiguration.setExtendTime(long extendTime)
How many milliseconds a "key"'s expire time is extended in milliseconds everytime is it "get" from a "LRUCachingMap".
|
LRUCachingMapConfiguration |
LRUCachingMapConfiguration.setMaxExtendCount(int maxExtendCount)
How many times a "key"'s expire time is allowed to be extended.
|
LRUCachingMapConfiguration |
LRUCachingMapConfiguration.setMaxSize(int maxSize)
The maximum number of elements in a LRUCachingMap before "cleanup" is performed to reduce the map size.
|
LRUCachingMapConfiguration |
LRUCachingMapConfiguration.setPersistedValuesInMemory(boolean persistedValuesInMemory)
If the values for persisted LRUCachingMaps should be held in memory or not.
If false the values for persisted storage will have to retrieved from persisted storage for each get, if true all values is held in memory as well, this will have an effect on your memory usage. |
LRUCachingMapConfiguration |
DefaultLRUCachingMapConfiguration.setPersistedValuesInMemory(boolean persistedValuesInMemory) |
Modifier and Type | Method and Description |
---|---|
static <V extends Serializable> |
LRUCachingMapFactory.createFilenameSerializedCache(LRUCachingMapConfiguration configuration,
CachingDirectory cachingDirectory,
PersistencesRestoreMethod persistencesRestoreMethod)
Constructs a file serialization cache, where the values is serialized to files.
|
static <V> DefaultFileLRUCachingMap<String,V> |
LRUCachingMapFactory.createFilenameXmlCache(LRUCachingMapConfiguration configuration,
CachingDirectory cachingDirectory,
Class<V> xmlClazz,
PersistencesRestoreMethod persistencesRestoreMethod)
Constructs a xml file marshall/unmarshall cache.
|
static DefaultFilenameFileReferenceLRUCachingMap |
LRUCachingMapFactory.createFileReferenceCache(LRUCachingMapConfiguration configuration,
CachingDirectory cachingDirectory,
PersistencesRestoreMethod persistencesRestoreMethod)
Constructs a file reference cache.
|
static <K extends Serializable,V extends Serializable> |
LRUCachingMapFactory.createIndexedSerializedCache(LRUCachingMapConfiguration configuration,
CachingDirectory cachingDirectory,
PersistencesRestoreMethod persistencesRestoreMethod,
int indexSaveInterval)
Constructs a indexed serializable file cache.
|
static <K extends Serializable,V> |
LRUCachingMapFactory.createIndexedXmlCache(LRUCachingMapConfiguration configuration,
CachingDirectory cachingDirectory,
Class<V> xmlClazz,
PersistencesRestoreMethod persistencesRestoreMethod,
int indexSaveInterval)
Constructs a indexed XML file cache.
|
static <K extends Serializable,V extends Serializable> |
LRUCachingMapFactory.createJPACache(LRUCachingMapConfiguration configuration,
Class<? extends CachedJPAEntity<K,V>> entityClazz,
javax.persistence.EntityManagerFactory entityManagerFactory,
PersistencesRestoreMethod persistencesRestoreMethod)
Constructs a JPA cache for an entity.
|
static <K extends Serializable,V extends Serializable> |
LRUCachingMapFactory.createJPAGroupedCache(LRUCachingMapConfiguration configuration,
String group,
Class<? extends CachedGroupJPAEntity<K,V>> entityGroupClazz,
javax.persistence.EntityManagerFactory entityManagerFactory,
PersistencesRestoreMethod persistencesRestoreMethod)
Constructs a group JPA cache for an entity, where multiple cache instances can share the same table.
|
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.
|
static <K,V> DefaultLRUCachingMap<K,V> |
LRUCachingMapFactory.createMemoryCache(LRUCachingMapConfiguration configuration)
Constructs a memory cache.
|
Constructor and Description |
---|
DefaultLRUCachingMap(LRUCachingMapConfiguration configuration,
ValueManager<K,V> valueManager)
Constructor.
|
Constructor and Description |
---|
DefaultMemoryLRUCachingMap(LRUCachingMapConfiguration configuration)
Constructor.
|
Constructor and Description |
---|
DefaultFileLRUCachingMap(LRUCachingMapConfiguration configuration,
AbstractFileValueManager<K,V> fileValueManager)
Constructor
|
Constructor and Description |
---|
DefaultFilenameFileReferenceLRUCachingMap(LRUCachingMapConfiguration configuration,
CachingDirectory cachingDirectory,
PersistencesRestoreMethod persistencesRestoreMethod)
Constructor.
|
Copyright © 2016. All rights reserved.