|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.timeindexing.cache.AbstractCachePolicy
Generic functionality for CachePolicies.
| Constructor Summary | |
AbstractCachePolicy()
|
|
| Method Summary | |
IndexCache |
getIndexCache()
Get the IndexCache that this is a policy for. |
boolean |
isInFirst(int n,
java.util.List list,
IndexItem item)
Is an item in the first N elements of a List. |
java.lang.Object |
notifyAddItemBegin(IndexItem item,
long pos)
Called at the beginning of cache.addItem() |
java.lang.Object |
notifyAddItemEnd(IndexItem item,
long pos)
Called at the beginning of cache.addItem() |
java.lang.Object |
notifyGetItemBegin(IndexItem item,
long pos)
Called at the beginning of cache.getItem() |
java.lang.Object |
notifyGetItemEnd(IndexItem item,
long pos)
Called at the end of cache.getItem() |
CachePolicy |
setIndexCache(IndexCache c)
Set the IndexCache that this is a policy for. |
protected void |
show()
Show the monitorList. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public AbstractCachePolicy()
| Method Detail |
public CachePolicy setIndexCache(IndexCache c)
setIndexCache in interface CachePolicypublic IndexCache getIndexCache()
getIndexCache in interface CachePolicy
public java.lang.Object notifyAddItemBegin(IndexItem item,
long pos)
notifyAddItemBegin in interface CachePolicyitem - the item being addedpos - the position the item is being added to
public java.lang.Object notifyAddItemEnd(IndexItem item,
long pos)
notifyAddItemEnd in interface CachePolicyitem - the item being addedpos - the position the item is being added to
public java.lang.Object notifyGetItemBegin(IndexItem item,
long pos)
notifyGetItemBegin in interface CachePolicypos - the position being requested
public java.lang.Object notifyGetItemEnd(IndexItem item,
long pos)
notifyGetItemEnd in interface CachePolicyitem - the item being returned
public boolean isInFirst(int n,
java.util.List list,
IndexItem item)
protected void show()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||