public class SortedCache extends BoundedCache
| 限定符和类型 | 字段和说明 |
|---|---|
private ConcurrentSortedBoundedMap<Object,Object> |
boundedMap |
private CacheStore |
store |
| 构造器和说明 |
|---|
SortedCache(int maxSize) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
clear() |
Object |
getObject(Object key) |
int |
getSize() |
boolean |
hasKey(Object key) |
Set<Object> |
keys() |
static void |
main(String[] args) |
void |
putObject(Object key,
Object value,
boolean ifAbsent) |
Object |
removeObject(Object key) |
void |
setAsc(boolean asc) |
void |
setCacheStore(CacheStore store) |
String |
toString() |
disposeexpiredCache, expiredCache, iterator, masterStandbyCache, toEntriesclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitclose, getObject, getObject, putObject, toEntriesforEach, iterator, spliteratorprivate final ConcurrentSortedBoundedMap<Object,Object> boundedMap
private CacheStore store
public void setCacheStore(CacheStore store)
setCacheStore 在类中 BoundedCachepublic void setAsc(boolean asc)
public int getSize()
public void clear()
public boolean hasKey(Object key)
public static void main(String[] args)
Copyright © 2022. All rights reserved.