1 28 29 package com.caucho.server.cache; 30 31 import com.caucho.config.types.Bytes; 32 import com.caucho.server.webapp.WebApp; 33 import com.caucho.vfs.Path; 34 35 import javax.servlet.FilterChain ; 36 37 40 abstract public class AbstractCache { 41 44 abstract public void setPath(Path path); 45 46 49 abstract public Path getPath(); 50 51 54 abstract public void setDiskSize(Bytes size); 55 56 59 abstract public int getMaxEntrySize(); 60 61 64 abstract public void setEnable(boolean isEnabled); 65 66 69 abstract public boolean isEnable(); 70 71 74 abstract public void setEntries(int entries); 75 76 79 abstract public void setDir(Path path); 80 81 84 abstract public void setSize(Bytes size); 85 86 89 abstract public FilterChain createFilterChain(FilterChain next, 90 WebApp app); 91 92 95 abstract public void clear(); 96 97 100 abstract public long getHitCount(); 101 102 105 abstract public long getMissCount(); 106 107 110 abstract public long getMemoryBlockHitCount(); 111 112 115 abstract public long getMemoryBlockMissCount(); 116 } 117 | Popular Tags |