org.apache.cassandra.utils
Class Cachetable<K,V>

java.lang.Object
  extended by 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>


Constructor Summary
Cachetable(long expiration)
           
Cachetable(long expiration, ICacheExpungeHook<K,V> global)
           
 
Method Summary
 boolean containsKey(K key)
           
 boolean containsValue(V value)
           
 V get(K key)
           
 boolean isEmpty()
           
 java.util.Set<K> keySet()
           
 void put(K key, V value)
           
 void put(K key, V value, ICacheExpungeHook<K,V> hook)
           
 V remove(K key)
           
 void shutdown()
           
 int size()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Cachetable

public Cachetable(long expiration)

Cachetable

public Cachetable(long expiration,
                  ICacheExpungeHook<K,V> global)
Method Detail

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 © 2009 The Apache Software Foundation