java.io
Class ExpiringCache

java.lang.Object
  extended byjava.io.ExpiringCache

class ExpiringCache
extends Object


Nested Class Summary
(package private) static class ExpiringCache.Entry
           
 
Field Summary
private  Map map
           
private  long millisUntilExpiration
           
private  int queryCount
           
private  int queryOverflow
           
 
Constructor Summary
(package private) ExpiringCache()
           
(package private) ExpiringCache(long millisUntilExpiration)
           
 
Method Summary
private  void cleanup()
           
(package private)  void clear()
           
private  ExpiringCache.Entry entryFor(String key)
           
(package private)  String get(String key)
           
(package private)  void put(String key, String val)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

millisUntilExpiration

private long millisUntilExpiration

map

private Map map

queryCount

private int queryCount

queryOverflow

private int queryOverflow
Constructor Detail

ExpiringCache

ExpiringCache()

ExpiringCache

ExpiringCache(long millisUntilExpiration)
Method Detail

get

String get(String key)

put

void put(String key,
         String val)

clear

void clear()

entryFor

private ExpiringCache.Entry entryFor(String key)

cleanup

private void cleanup()