protected static class MemoryCacher.MemoryPartition
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected java.util.LinkedHashMap<java.lang.String,MemoryCacher.PartitionEntry> |
cache |
protected MemoryCacher |
parent |
protected java.util.concurrent.locks.ReentrantReadWriteLock.ReadLock |
readLock |
protected java.util.concurrent.locks.ReentrantReadWriteLock.WriteLock |
writeLock |
| Modifier | Constructor and Description |
|---|---|
protected |
MemoryPartition(MemoryCacher parent) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addKeysTo(io.datatree.Tree list,
java.lang.String prefix) |
protected void |
clean(java.lang.String match) |
protected void |
collectExpiredEntries(long now,
java.util.LinkedList<java.lang.String> expiredKeys) |
protected void |
del(java.lang.String key) |
protected io.datatree.Tree |
get(java.lang.String key) |
protected void |
removeOldEntries(long now) |
protected void |
set(java.lang.String key,
io.datatree.Tree value,
int ttl) |
protected final MemoryCacher parent
protected final java.util.concurrent.locks.ReentrantReadWriteLock.ReadLock readLock
protected final java.util.concurrent.locks.ReentrantReadWriteLock.WriteLock writeLock
protected final java.util.LinkedHashMap<java.lang.String,MemoryCacher.PartitionEntry> cache
protected MemoryPartition(MemoryCacher parent)
protected void removeOldEntries(long now)
protected void collectExpiredEntries(long now,
java.util.LinkedList<java.lang.String> expiredKeys)
protected io.datatree.Tree get(java.lang.String key)
throws java.lang.Exception
java.lang.Exceptionprotected void set(java.lang.String key,
io.datatree.Tree value,
int ttl)
protected void del(java.lang.String key)
protected void clean(java.lang.String match)
protected void addKeysTo(io.datatree.Tree list,
java.lang.String prefix)