1 7 package org.jboss.cache; 8 9 import org.jboss.cache.config.EvictionRegionConfig; 10 import org.jboss.cache.eviction.EvictedEventNode; 11 import org.jboss.cache.eviction.EvictionPolicy; 12 import org.jboss.cache.eviction.EvictionPolicyConfig; 13 import org.jboss.cache.eviction.LRUPolicy; 14 15 20 public interface Region extends Comparable <Region> 21 { 22 public enum Type 23 { 24 EVICTION, MARSHALLING, ANY 25 } 26 27 32 void registerContextClassLoader(ClassLoader classLoader); 33 34 37 void unregisterContextClassLoader(); 38 39 42 void activate(); 43 44 47 void deactivate(); 48 49 52 boolean isActive(); 53 54 59 ClassLoader getClassLoader(); 60 61 66 void setEvictionPolicy(EvictionPolicyConfig evictionPolicyConfig); 67 68 EvictionPolicyConfig getEvictionPolicyConfig(); 69 70 EvictionPolicy getEvictionPolicy(); 71 72 EvictionRegionConfig getEvictionRegionConfig(); 73 74 void resetEvictionQueues(); 75 76 int nodeEventQueueSize(); 77 78 EvictedEventNode takeLastEventNode(); 79 80 void putNodeEvent(EvictedEventNode event); 81 82 95 void markNodeCurrentlyInUse(Fqn fqn, long timeout); 96 97 103 void unmarkNodeCurrentlyInUse(Fqn fqn); 104 105 Fqn getFqn(); 106 107 113 void setActive(boolean b); 114 } 115 | Popular Tags |