ostore.cache
Interface CachePolicy

All Known Implementing Classes:
ClockAlgorithm

public interface CachePolicy


Nested Class Summary
static class CachePolicy.Line
          Opaque type used to reference line in cache.
 
Method Summary
 boolean empty()
          Are there any lines in here?
 void insert(CachePolicy.Line value)
          Insert into loop and return pointer.
 void remove(CachePolicy.Line value)
          Manually remove a line.
 CachePolicy.Line select_victim(boolean modified_ok)
          Select the most appropriate line to remove.
 int size()
          How many lines are in here?
 String toString()
          Print out contents.
 

Method Detail

size

public int size()
How many lines are in here?


empty

public boolean empty()
Are there any lines in here?


insert

public void insert(CachePolicy.Line value)
Insert into loop and return pointer.


select_victim

public CachePolicy.Line select_victim(boolean modified_ok)
Select the most appropriate line to remove.


remove

public void remove(CachePolicy.Line value)
Manually remove a line.


toString

public String toString()
Print out contents.

Overrides:
toString in class Object