K
- the key type.V
- the value type.public class DefaultFileLRUCachingMap<K,V> extends DefaultLRUCachingMap<K,V>
Constructor and Description |
---|
DefaultFileLRUCachingMap(LRUCachingMapConfiguration configuration,
AbstractFileValueManager<K,V> fileValueManager)
Constructor
|
Modifier and Type | Method and Description |
---|---|
DefaultFileValueWrapper<K,V> |
cast(AbstractValueWrapper<K,V> valueWrapper)
A convience method that cast the "AbstractValueWrapper" to a "DefaultFileValueWrapper"
|
File |
getFile(K key)
Gets the file where the value is stored in.
|
cleanup, exists, extend, extend, extend, get, getConfiguration, getExpirationDateTime, getExpirationTimeSpan, getExpirationTimeSpan, getKeys, getLastCleanupDateTime, getLogger, getNextToExpire, getStoreDateTime, getValueManager, getValueWrapper, isExpired, isPersisted, peek, put, reload, remove, removeAll, restoreCacheElement, size
public DefaultFileLRUCachingMap(LRUCachingMapConfiguration configuration, AbstractFileValueManager<K,V> fileValueManager) throws NullPointerException
configuration
- configuration the confiuration.fileValueManager
- valueManager the instance of a ValueManager which handles how the values is stored.NullPointerException
- if any parameter is null
.public final DefaultFileValueWrapper<K,V> cast(AbstractValueWrapper<K,V> valueWrapper)
valueWrapper
- AbstractValueWrapperCopyright © 2016. All rights reserved.