public final class EdenConcurrentCache<K,V>
extends java.lang.Object
| 限定符和类型 | 字段和说明 |
|---|---|
int |
DEFAULT_SIZE |
| 构造器和说明 |
|---|
EdenConcurrentCache() |
EdenConcurrentCache(int size) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
clear() |
int |
edenSize() |
V |
get(K k) |
int |
getMaxSize() |
long |
increamentMissing() |
int |
longtermSize() |
boolean |
needLogWarn(long misses,
long warnInterval) |
boolean |
put(K k,
V v)
put data with key and value
if read max data size then return true ,either return false.
|
public final int DEFAULT_SIZE
public EdenConcurrentCache()
public EdenConcurrentCache(int size)
public int getMaxSize()
public boolean put(K k, V v)
k - v - public int longtermSize()
public int edenSize()
public void clear()
public long increamentMissing()
public boolean needLogWarn(long misses,
long warnInterval)