public abstract class CacheObject extends Object implements Comparable<CacheObject>
| 限定符和类型 | 字段和说明 |
|---|---|
CacheObject |
cacheChained
The next element in the hash chain.
|
CacheObject |
cacheNext
The next element in the LRU linked list.
|
CacheObject |
cachePrevious
The previous element in the LRU linked list.
|
| 构造器和说明 |
|---|
CacheObject() |
| 限定符和类型 | 方法和说明 |
|---|---|
abstract boolean |
canRemove()
Check if the object can be removed from the cache.
|
int |
compareTo(CacheObject other) |
abstract int |
getMemory()
Get the estimated used memory.
|
int |
getPos() |
boolean |
isChanged()
Check if this cache object has been changed and thus needs to be written
back to the storage.
|
boolean |
isStream() |
void |
setChanged(boolean b) |
void |
setPos(int pos) |
public CacheObject cachePrevious
public CacheObject cacheNext
public CacheObject cacheChained
public abstract boolean canRemove()
public abstract int getMemory()
public void setPos(int pos)
public int getPos()
public boolean isChanged()
public void setChanged(boolean b)
public int compareTo(CacheObject other)
compareTo 在接口中 Comparable<CacheObject>public boolean isStream()
Copyright © 2017. All rights reserved.