K
- the key typeV
- the value typepublic class SynchLinkedMemoryCache<K,V> extends MemoryCache<K,V>
LinkedMemoryCache
,
Serialized FormConstructor and Description |
---|
SynchLinkedMemoryCache()
Instantiates a new LinkedMemoryCache.
|
SynchLinkedMemoryCache(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 SynchLinkedMemoryCache()
public SynchLinkedMemoryCache(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.