org.ujmp.ehcache
Class EhcacheMap<K,V>
java.lang.Object
java.util.AbstractMap<K,V>
org.ujmp.core.collections.AbstractMap<K,V>
org.ujmp.ehcache.EhcacheMap<K,V>
- All Implemented Interfaces:
- Closeable, Flushable, Serializable, Map<K,V>, Erasable
public class EhcacheMap<K,V>
- extends AbstractMap<K,V>
- implements Erasable, Flushable, Closeable
- See Also:
- Serialized Form
Nested classes/interfaces inherited from interface java.util.Map |
Map.Entry<K,V> |
EhcacheMap
public EhcacheMap()
throws IOException
- Throws:
IOException
EhcacheMap
public EhcacheMap(String name)
throws IOException
- Throws:
IOException
EhcacheMap
public EhcacheMap(boolean overFlowToDisk)
throws IOException
- Throws:
IOException
EhcacheMap
public EhcacheMap(String name,
boolean overFlowToDisk)
throws IOException
- Throws:
IOException
EhcacheMap
public EhcacheMap(String name,
File path,
boolean overFlowToDisk)
throws IOException
- Throws:
IOException
isOverflowToDisk
public boolean isOverflowToDisk()
setOverflowToDisk
public void setOverflowToDisk(boolean overflowToDisk)
getName
public String getName()
getMaxElementsInMemory
public int getMaxElementsInMemory()
setMaxElementsInMemory
public void setMaxElementsInMemory(int maxElementsInMemory)
getPath
public File getPath()
clear
public void clear()
- Specified by:
clear
in interface Map<K,V>
- Specified by:
clear
in class AbstractMap<K,V>
containsKey
public boolean containsKey(Object key)
- Specified by:
containsKey
in interface Map<K,V>
- Overrides:
containsKey
in class AbstractMap<K,V>
containsValue
public boolean containsValue(Object value)
- Specified by:
containsValue
in interface Map<K,V>
- Overrides:
containsValue
in class AbstractMap<K,V>
get
public V get(Object key)
- Specified by:
get
in interface Map<K,V>
- Specified by:
get
in class AbstractMap<K,V>
keySet
public Set<K> keySet()
- Specified by:
keySet
in interface Map<K,V>
- Specified by:
keySet
in class AbstractMap<K,V>
put
public V put(K key,
V value)
- Specified by:
put
in interface Map<K,V>
- Specified by:
put
in class AbstractMap<K,V>
remove
public V remove(Object key)
- Specified by:
remove
in interface Map<K,V>
- Specified by:
remove
in class AbstractMap<K,V>
size
public int size()
- Specified by:
size
in interface Map<K,V>
- Specified by:
size
in class AbstractMap<K,V>
finalize
public void finalize()
- Overrides:
finalize
in class Object
erase
public void erase()
throws IOException
- Specified by:
erase
in interface Erasable
- Throws:
IOException
flush
public void flush()
throws IOException
- Specified by:
flush
in interface Flushable
- Throws:
IOException
close
public void close()
throws IOException
- Specified by:
close
in interface Closeable
- Throws:
IOException
Copyright © 2010. All Rights Reserved.