public class CacheMap<K,V> extends Object
| Modifier and Type | Class and Description |
|---|---|
protected class |
CacheMap.CacheEntry<L,B> |
| Constructor and Description |
|---|
CacheMap(long timeToLive,
long timerInterval,
int maxItems) |
CacheMap(long timeToLive,
long timerInterval,
int maxItems,
java.util.function.Consumer<ArrayList<CacheMap.CacheEntry<K,V>>> action) |
| Modifier and Type | Method and Description |
|---|---|
void |
cleanup() |
boolean |
doesAutomaticCleanup() |
V |
get(K key) |
void |
put(K key,
V value) |
void |
remove(K key) |
int |
size() |
public CacheMap(long timeToLive,
long timerInterval,
int maxItems)
public CacheMap(long timeToLive,
long timerInterval,
int maxItems,
java.util.function.Consumer<ArrayList<CacheMap.CacheEntry<K,V>>> action)
Copyright © 2020. All rights reserved.