|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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 |
iterate()
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 EvictionQueue
entry
- The NodeEntry to add to queue.public void clear()
clear
in interface EvictionQueue
public boolean containsNodeEntry(NodeEntry entry)
false
containsNodeEntry
in interface EvictionQueue
entry
- NodeEntry to check for existence in queue.
public NodeEntry getFirstNodeEntry()
null
getFirstNodeEntry
in interface EvictionQueue
public NodeEntry getNodeEntry(Fqn fqn)
null
getNodeEntry
in interface EvictionQueue
fqn
- Fqn of the node entry to retrieve.
public NodeEntry getNodeEntry(String fqn)
null
getNodeEntry
in interface EvictionQueue
public int getNumberOfElements()
0
getNumberOfElements
in interface EvictionQueue
public int getNumberOfNodes()
0
getNumberOfNodes
in interface EvictionQueue
public Iterator iterate()
Iterator
whose
hasNext()
returns false
.
iterate
in interface EvictionQueue
public void modifyElementCount(int difference)
modifyElementCount
in interface EvictionQueue
public void removeNodeEntry(NodeEntry entry)
removeNodeEntry
in interface EvictionQueue
entry
- The NodeEntry to remove from queue.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |