1 25 26 package org.objectweb.perseus.cache.api; 27 28 import org.objectweb.fractal.api.control.AttributeController; 29 30 import java.util.Collection ; 31 32 42 public interface CacheAttributeController extends AttributeController { 43 44 public final static int NO_LIMIT = -1; 45 46 65 void setMaxObjects(int size) throws IllegalArgumentException , CacheException; 66 67 71 int getMaxObjects(); 72 73 83 void setMemorySize(int size) throws IllegalArgumentException ; 84 85 89 int getMemorySize(); 90 91 96 void setAutoCleanSize(String size); 97 98 String getAutoCleanSize(); 99 100 105 void setAutoCleanThreshold(String size); 106 107 String getAutoCleanThreshold(); 108 109 113 int getCurrentSize(); 114 115 120 int getCurrentMemorySize(); 121 122 126 Collection getCurrentEntryIdentifiers(); 127 } 128 | Popular Tags |