public abstract class CacheObject extends Object implements Comparable<CacheObject>
Modifier and Type | Field and Description |
---|---|
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.
|
Constructor and Description |
---|
CacheObject() |
Modifier and Type | Method and Description |
---|---|
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
in interface Comparable<CacheObject>
public boolean isStream()
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.