1 22 package org.jboss.invocation.pooled.server; 23 24 25 import org.jboss.util.LRUCachePolicy; 26 27 35 public class LRUPool extends LRUCachePolicy 36 { 37 public LRUPool(int min, int max) 38 { 39 super(min, max); 40 } 41 protected void entryRemoved(LRUCachePolicy.LRUCacheEntry entry) 42 { 43 ServerThread thread = (ServerThread)entry.m_object; 44 thread.evict(); 45 } 46 47 public void evict() 48 { 49 ServerThread thread = (ServerThread)m_list.m_tail.m_object; 51 thread.evict(); 52 } 53 54 } 55 | Popular Tags |