1 2 3 package org.enhydra.shark.caching; 4 5 6 import org.enhydra.shark.api.*; 7 import org.enhydra.shark.api.internal.caching.*; 8 import org.enhydra.shark.api.internal.working.CallbackUtilities; 9 10 17 public class LRUCacheMgr implements CacheMgr { 18 19 protected ProcessCache processes = null; 20 protected ResourceCache resources = null; 21 22 29 public void configure (CallbackUtilities cus) throws RootException { 30 processes=new LRUProcessCache(); 31 processes.configure(cus); 32 resources=new LRUResourceCache(); 33 resources.configure(cus); 34 } 35 36 41 public ProcessCache getProcessCache () { 42 return processes; 43 } 44 45 50 public ResourceCache getResourceCache() { 51 return resources; 52 } 53 54 } 55 56 | Popular Tags |