|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.cache.eviction.ElementSizeQueue
public class ElementSizeQueue
| Nested Class Summary | |
|---|---|
protected static class |
ElementSizeQueue.MaxElementComparator
Comparator class for Max Elements. |
| Constructor Summary | |
|---|---|
protected |
ElementSizeQueue()
|
| 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. |
protected List<NodeEntry> |
getEvictionList()
|
NodeEntry |
getFirstNodeEntry()
Get the first entry in the queue. |
NodeEntry |
getNodeEntry(Fqn fqn)
Retrieve a node entry by Fqn. |
NodeEntry |
getNodeEntry(String fqn)
|
int |
getNumberOfElements()
Get the number of elements in the queue. |
int |
getNumberOfNodes()
Get the number of nodes in the queue. |
protected Set<NodeEntry> |
getRemovalQueue()
|
Iterator<NodeEntry> |
iterator()
|
void |
modifyElementCount(int difference)
|
protected void |
prune()
|
void |
removeNodeEntry(NodeEntry entry)
Remove a NodeEntry from queue. |
void |
resortEvictionQueue()
Provide contract to resort a sorted queue. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected ElementSizeQueue()
| Method Detail |
|---|
public void resortEvictionQueue()
SortedEvictionQueue
resortEvictionQueue in interface SortedEvictionQueuepublic NodeEntry getFirstNodeEntry()
EvictionQueue
getFirstNodeEntry in interface EvictionQueuepublic NodeEntry getNodeEntry(Fqn fqn)
EvictionQueue
getNodeEntry in interface EvictionQueuefqn - Fqn of the node entry to retrieve.
public NodeEntry getNodeEntry(String fqn)
getNodeEntry in interface EvictionQueuepublic boolean containsNodeEntry(NodeEntry entry)
EvictionQueue
containsNodeEntry in interface EvictionQueueentry - NodeEntry to check for existence in queue.
public void removeNodeEntry(NodeEntry entry)
EvictionQueue
removeNodeEntry in interface EvictionQueueentry - The NodeEntry to remove from queue.public void addNodeEntry(NodeEntry entry)
EvictionQueue
addNodeEntry in interface EvictionQueueentry - The NodeEntry to add to queue.public int getNumberOfNodes()
EvictionQueue
getNumberOfNodes in interface EvictionQueuepublic int getNumberOfElements()
EvictionQueue
getNumberOfElements in interface EvictionQueuepublic void modifyElementCount(int difference)
modifyElementCount in interface EvictionQueuepublic void clear()
EvictionQueue
clear in interface EvictionQueueprotected final List<NodeEntry> getEvictionList()
protected final Set<NodeEntry> getRemovalQueue()
protected final void prune()
public Iterator<NodeEntry> iterator()
iterator in interface Iterable<NodeEntry>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||