KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > net > suberic > util > cache > MemorySizedCache


1 package net.suberic.util.cache;
2
3 /**
4  * A simple memory cache.
5  */

6 public class MemorySizedCache extends AbstractSizedCache {
7
8   /**
9    * Creates a new MemorySizedCache.
10    */

11   public MemorySizedCache(SizedCacheEntryFactory newFactory, long newMaxSize, long newMaxEntrySize) {
12     setFactory(newFactory);
13     setMaxSize(newMaxSize);
14     setMaxEntrySize(newMaxEntrySize);
15   }
16 }
17
Popular Tags