|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.cache.eviction.LRUQueue
public class LRUQueue
LRU Eviction Queue implementation.
This eviction queue will iterate properly through two sorted lists. One sorted by maxAge and the other sorted by idleTime.
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 |
getFirstLRUNodeEntry()
|
NodeEntry |
getFirstMaxAgeNodeEntry()
|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public NodeEntry getFirstNodeEntry()
EvictionQueue
getFirstNodeEntry
in interface EvictionQueue
public NodeEntry getFirstLRUNodeEntry()
public NodeEntry getFirstMaxAgeNodeEntry()
public NodeEntry getNodeEntry(Fqn fqn)
EvictionQueue
getNodeEntry
in interface EvictionQueue
fqn
- Fqn of the node entry to retrieve.
public NodeEntry getNodeEntry(java.lang.String fqn)
getNodeEntry
in interface EvictionQueue
public boolean containsNodeEntry(NodeEntry entry)
EvictionQueue
containsNodeEntry
in interface EvictionQueue
entry
- NodeEntry to check for existence in queue.
public void removeNodeEntry(NodeEntry entry)
EvictionQueue
removeNodeEntry
in interface EvictionQueue
entry
- The NodeEntry to remove from queue.public void addNodeEntry(NodeEntry entry)
EvictionQueue
addNodeEntry
in interface EvictionQueue
entry
- The NodeEntry to add to queue.public int size()
EvictionQueue
size
in interface EvictionQueue
public void clear()
EvictionQueue
clear
in interface EvictionQueue
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |