|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.neo4j.kernel.impl.cache.NoCache<K,V>
public class NoCache<K,V>
| Constructor Summary | |
|---|---|
NoCache(String name)
|
|
| Method Summary | |
|---|---|
void |
clear()
Removing all cached elements. |
void |
elementCleaned(V value)
|
V |
get(K key)
Returns the cached element for key. |
String |
getName()
Returns the name of the cache. |
long |
hitCount()
|
boolean |
isAdaptive()
|
int |
maxSize()
|
long |
missCount()
|
void |
put(K key,
V value)
Adds element to cache. |
void |
putAll(Map<K,V> map)
|
V |
remove(K key)
Removes the element for key from cache and returns it. |
void |
resize(int newSize)
|
void |
setAdaptiveStatus(boolean status)
|
int |
size()
Returns the cache size. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public NoCache(String name)
| Method Detail |
|---|
public void put(K key,
V value)
Cacheelement to cache.
put in interface Cache<K,V>key - the key for the elementpublic void putAll(Map<K,V> map)
putAll in interface Cache<K,V>public V get(K key)
Cachekey. If the element isn't
in cache null is returned.
get in interface Cache<K,V>key - the key for the element
null if element didn't existpublic V remove(K key)
Cachekey from cache and returns it. If
the no element for key exists null is
returned.
remove in interface Cache<K,V>key - the key for the element
null if element didn't
existpublic long hitCount()
hitCount in interface Cache<K,V>public long missCount()
missCount in interface Cache<K,V>public int size()
Cache
size in interface Cache<K,V>public void clear()
Cache
clear in interface Cache<K,V>public void elementCleaned(V value)
elementCleaned in interface Cache<K,V>public String getName()
Cache
getName in interface Cache<K,V>public boolean isAdaptive()
isAdaptive in interface Cache<K,V>public int maxSize()
maxSize in interface Cache<K,V>public void resize(int newSize)
resize in interface Cache<K,V>public void setAdaptiveStatus(boolean status)
setAdaptiveStatus in interface Cache<K,V>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||