| Modifier and Type | Field and Description |
|---|---|
| public static final String | NAME
The name of this policy as a string literal |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | Returns: true if the second element is preferable to the first element for ths policythe element to compare against element1, Element the element to compare element2)Implements net. |
| public String | Returns: the name of the Policy. Inbuilt examples are LRU, LFU and FIFO.Implements net. |
| NAME | back to summary |
|---|---|
| public static final String NAME The name of this policy as a string literal | |
| LfuPolicy | back to summary |
|---|---|
| public LfuPolicy() | |
| compare | back to summary |
|---|---|
| public boolean compare(Element element1, Element element2) Implements net. Compares the desirableness for eviction of two elements Compares hit counts. If both zero, | |
| getName | back to summary |
|---|---|
| public String getName() Implements net.
| |