|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.cache.eviction.NullEvictionQueue
public class NullEvictionQueue
A queue that does nothing.
| Field Summary | |
|---|---|
static NullEvictionQueue |
INSTANCE
Singleton instance of this class. |
| Method Summary | |
|---|---|
void |
addNodeEntry(NodeEntry entry)
No-op |
void |
clear()
No-op |
boolean |
containsNodeEntry(NodeEntry entry)
Returns false |
NodeEntry |
getFirstNodeEntry()
Returns null |
NodeEntry |
getNodeEntry(Fqn fqn)
Returns null |
NodeEntry |
getNodeEntry(String fqn)
Returns null |
int |
getNumberOfElements()
Returns 0 |
int |
getNumberOfNodes()
Returns 0 |
Iterator<NodeEntry> |
iterator()
Returns an Iterator whose
hasNext() returns false. |
void |
modifyElementCount(int difference)
No-op |
void |
removeNodeEntry(NodeEntry entry)
No-op |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final NullEvictionQueue INSTANCE
| Method Detail |
|---|
public void addNodeEntry(NodeEntry entry)
addNodeEntry in interface EvictionQueueentry - The NodeEntry to add to queue.public void clear()
clear in interface EvictionQueuepublic boolean containsNodeEntry(NodeEntry entry)
false
containsNodeEntry in interface EvictionQueueentry - NodeEntry to check for existence in queue.
public NodeEntry getFirstNodeEntry()
null
getFirstNodeEntry in interface EvictionQueuepublic NodeEntry getNodeEntry(Fqn fqn)
null
getNodeEntry in interface EvictionQueuefqn - Fqn of the node entry to retrieve.
public NodeEntry getNodeEntry(String fqn)
null
getNodeEntry in interface EvictionQueuepublic int getNumberOfElements()
0
getNumberOfElements in interface EvictionQueuepublic int getNumberOfNodes()
0
getNumberOfNodes in interface EvictionQueuepublic Iterator<NodeEntry> iterator()
Iterator whose
hasNext() returns false.
iterator in interface Iterable<NodeEntry>public void modifyElementCount(int difference)
modifyElementCount in interface EvictionQueuepublic void removeNodeEntry(NodeEntry entry)
removeNodeEntry in interface EvictionQueueentry - The NodeEntry to remove from queue.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||