org.apache.cassandra.utils
Class Cachetable<K,V>
java.lang.Object
org.apache.cassandra.utils.Cachetable<K,V>
- All Implemented Interfaces:
- ICachetable<K,V>
public class Cachetable<K,V>
- extends java.lang.Object
- implements ICachetable<K,V>
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Cachetable
public Cachetable(long expiration)
Cachetable
public Cachetable(long expiration,
ICacheExpungeHook<K,V> global)
shutdown
public void shutdown()
- Specified by:
shutdown
in interface ICachetable<K,V>
put
public void put(K key,
V value)
- Specified by:
put
in interface ICachetable<K,V>
put
public void put(K key,
V value,
ICacheExpungeHook<K,V> hook)
- Specified by:
put
in interface ICachetable<K,V>
get
public V get(K key)
- Specified by:
get
in interface ICachetable<K,V>
remove
public V remove(K key)
- Specified by:
remove
in interface ICachetable<K,V>
size
public int size()
- Specified by:
size
in interface ICachetable<K,V>
containsKey
public boolean containsKey(K key)
- Specified by:
containsKey
in interface ICachetable<K,V>
containsValue
public boolean containsValue(V value)
- Specified by:
containsValue
in interface ICachetable<K,V>
isEmpty
public boolean isEmpty()
- Specified by:
isEmpty
in interface ICachetable<K,V>
keySet
public java.util.Set<K> keySet()
- Specified by:
keySet
in interface ICachetable<K,V>
Copyright © 2010 The Apache Software Foundation