|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface EvictionQueue
Eviction Queue interface defines a contract for the Eviction Queue implementations used by EvictionPolicies.
Note: None of the Eviction classes are thread safe. It is assumed that an individual instance of an EvictionPolicy/ EvictionAlgorithm/EvictionQueue/EvictionConfiguration are only operated on by one thread at any given time.
Method Summary | |
---|---|
void |
addNodeEntry(NodeEntry entry)
Add a NodeEntry to the queue. |
void |
clear()
Clear the queue. |
boolean |
containsNodeEntry(NodeEntry entry)
Check if queue contains the given NodeEntry. |
NodeEntry |
getFirstNodeEntry()
Get the first entry in the queue. |
NodeEntry |
getNodeEntry(Fqn fqn)
Retrieve a node entry by Fqn. |
NodeEntry |
getNodeEntry(java.lang.String fqn)
|
int |
getNumberOfElements()
Get the number of elements in the queue. |
int |
getNumberOfNodes()
Get the number of nodes in the queue. |
java.util.Iterator |
iterate()
|
void |
modifyElementCount(int difference)
|
void |
removeNodeEntry(NodeEntry entry)
Remove a NodeEntry from queue. |
Method Detail |
---|
NodeEntry getFirstNodeEntry()
NodeEntry getNodeEntry(Fqn fqn)
fqn
- Fqn of the node entry to retrieve.
NodeEntry getNodeEntry(java.lang.String fqn)
boolean containsNodeEntry(NodeEntry entry)
entry
- NodeEntry to check for existence in queue.
void removeNodeEntry(NodeEntry entry)
entry
- The NodeEntry to remove from queue.void addNodeEntry(NodeEntry entry)
entry
- The NodeEntry to add to queue.int getNumberOfNodes()
int getNumberOfElements()
void modifyElementCount(int difference)
java.util.Iterator iterate()
void clear()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |