K - the key typeV - the value typepublic class LinkedMemoryCache<K,V> extends MemoryCache<K,V>
LimitedMap,
Serialized Form| Constructor and Description |
|---|
LinkedMemoryCache()
Instantiates a new LinkedMemoryCache.
|
LinkedMemoryCache(int maxSize)
Instantiates a new LinkedMemoryCache.
|
| Modifier and Type | Method and Description |
|---|---|
Map<K,V> |
getStorage()
Gets the storage.
|
protected void |
init()
Instantiates storage.
|
void |
setMaxSize(int maxSize)
Sets the maximum size of the cache
|
clear, clearByKey, clearByValue, get, getCache, put, sizepublic LinkedMemoryCache()
public LinkedMemoryCache(int maxSize)
maxSize to set a maximum size of the cache.maxSize - the max size of the cachepublic Map<K,V> getStorage()
MemoryCachegetStorage in class MemoryCache<K,V>protected void init()
MemoryCacheinit in class MemoryCache<K,V>public void setMaxSize(int maxSize)
maxSize - the new max size of the cacheCopyright © 2010-2020 Toolsverse. All Rights Reserved.