|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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)
|
void |
removeNodeEntry(NodeEntry entry)
Remove a NodeEntry from queue. |
int |
size()
Get the size of the queue. |
Method Detail |
public NodeEntry getFirstNodeEntry()
public NodeEntry getNodeEntry(Fqn fqn)
fqn
- Fqn of the node entry to retrieve.
public NodeEntry getNodeEntry(java.lang.String fqn)
public boolean containsNodeEntry(NodeEntry entry)
entry
- NodeEntry to check for existence in queue.
public void removeNodeEntry(NodeEntry entry)
entry
- The NodeEntry to remove from queue.public void addNodeEntry(NodeEntry entry)
entry
- The NodeEntry to add to queue.public int size()
public void clear()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |