K
- the key typeV
- the value typepublic class LinkedMemoryCache<K,V> extends MemoryCache<K,V>
LimitedMap
,
Serialized FormConstructor 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, size
public 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()
MemoryCache
getStorage
in class MemoryCache<K,V>
protected void init()
MemoryCache
init
in class MemoryCache<K,V>
public void setMaxSize(int maxSize)
maxSize
- the new max size of the cacheCopyright © 2010-2020 Toolsverse. All Rights Reserved.