public class FifoCache extends LimitedCache
AbstractCache.CacheIterator| 限定符和类型 | 字段和说明 |
|---|---|
private Cache |
delegate |
private Queue<Object> |
keys |
private int |
maxSize |
private Store |
store |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
clear() |
private void |
control(Object key) |
Object |
getObject(Object key) |
int |
getSize() |
boolean |
hasKey(Object key) |
Set<Object> |
keys() |
void |
putObject(Object key,
Object value) |
Object |
removeObject(Object key) |
void |
setStore(Store store) |
String |
toString() |
expiredCache, expiredCache, fifoCache, iterator, lifoCache, lruCache, masterStandbyCache, sortedCacheclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitforEach, iterator, spliteratorprivate final Cache delegate
private final int maxSize
private Store store
public FifoCache(int maxSize)
public FifoCache(Cache delegate, int maxSize)
public void setStore(Store store)
setStore 在类中 LimitedCachepublic int getSize()
public void clear()
private void control(Object key)
public boolean hasKey(Object key)
Copyright © 2020. All rights reserved.