org.ujmp.ehcache
Class EhcacheMap<K,V>

java.lang.Object
  extended by java.util.AbstractMap<K,V>
      extended by org.ujmp.core.collections.AbstractMap<K,V>
          extended by 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 Class Summary
 
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
 
Nested classes/interfaces inherited from interface java.util.Map
Map.Entry<K,V>
 
Constructor Summary
EhcacheMap()
           
EhcacheMap(boolean overFlowToDisk)
           
EhcacheMap(String name)
           
EhcacheMap(String name, boolean overFlowToDisk)
           
EhcacheMap(String name, File path, boolean overFlowToDisk)
           
 
Method Summary
 void clear()
           
 void close()
           
 boolean containsKey(Object key)
           
 boolean containsValue(Object value)
           
 void erase()
           
 void finalize()
           
 void flush()
           
 V get(Object key)
           
 int getMaxElementsInMemory()
           
 String getName()
           
 File getPath()
           
 boolean isOverflowToDisk()
           
 Set<K> keySet()
           
 V put(K key, V value)
           
 V remove(Object key)
           
 void setMaxElementsInMemory(int maxElementsInMemory)
           
 void setOverflowToDisk(boolean overflowToDisk)
           
 int size()
           
 
Methods inherited from class org.ujmp.core.collections.AbstractMap
entrySet, isEmpty, putAll, values
 
Methods inherited from class java.util.AbstractMap
clone, equals, hashCode, toString
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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
Method Detail

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.