1 23 24 package com.sun.ejb.containers.util.cache; 25 26 import com.sun.ejb.containers.StatefulSessionContainer; 27 28 import java.util.*; 29 import java.util.logging.*; 30 import com.sun.logging.*; 31 32 import java.util.TimerTask ; 33 import com.sun.logging.*; 34 35 public class UnBoundedSessionCache 36 extends LruSessionCache 37 { 38 39 public UnBoundedSessionCache(String cacheName, 40 StatefulSessionContainer container, 41 int cacheIdleTime, int removalTime) { 42 super(cacheName, container, cacheIdleTime, removalTime); 43 threshold = Integer.MAX_VALUE; 44 } 45 46 47 protected boolean isThresholdReached() { 48 return false; 49 } 50 51 protected CacheItem trimLru() { 52 threshold *= 2; 53 return null; 54 } 55 56 } 57 | Popular Tags |