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

java.lang.Object
  extended by org.apache.cassandra.utils.ExpiringMap<K,V>

public class ExpiringMap<K,V>
extends java.lang.Object


Constructor Summary
ExpiringMap(long expiration)
           
ExpiringMap(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

ExpiringMap

public ExpiringMap(long expiration)

ExpiringMap

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

shutdown

public void shutdown()

put

public void put(K key,
                V value)

put

public void put(K key,
                V value,
                ICacheExpungeHook<K,V> hook)

get

public V get(K key)

remove

public V remove(K key)

size

public int size()

containsKey

public boolean containsKey(K key)

containsValue

public boolean containsValue(V value)

isEmpty

public boolean isEmpty()

keySet

public java.util.Set<K> keySet()


Copyright © 2010 The Apache Software Foundation