/** * initialize the cache * @param maxEntries maximum number of entries expected in the cache * @param loadFactor the load factor * @param timeout to be used to trim the expired entries * @param props opaque list of properties for a given cache implementation * @throws a generic Exception if the initialization failed */ public void init(int maxEntries, long timeout, float loadFactor, Properties props) { // if the max entries is <= 0 then set the default max entries if (maxEntries <= 0) { maxEntries = defaultMaxEntries; // mark this cache unbounded isUnbounded = true; } setTimeout(timeout); super.init(maxEntries, loadFactor, props); }
/** * initialize the cache * @param maxEntries maximum number of entries expected in the cache * @param loadFactor the load factor * @param timeout to be used to trim the expired entries * @param props opaque list of properties for a given cache implementation * @throws a generic Exception if the initialization failed */ public void init(int maxEntries, long timeout, float loadFactor, Properties props) { // if the max entries is <= 0 then set the default max entries if (maxEntries <= 0) { maxEntries = defaultMaxEntries; // mark this cache unbounded isUnbounded = true; } setTimeout(timeout); super.init(maxEntries, loadFactor, props); }
/** * initialize the cache * @param maxEntries maximum number of entries expected in the cache * @param loadFactor the load factor * @param timeout to be used to trim the expired entries * @param props opaque list of properties for a given cache implementation * @throws a generic Exception if the initialization failed */ public void init(int maxEntries, long timeout, float loadFactor, Properties props) { // if the max entries is <= 0 then set the default max entries if (maxEntries <= 0) { maxEntries = defaultMaxEntries; // mark this cache unbounded isUnbounded = true; } setTimeout(timeout); super.init(maxEntries, loadFactor, props); }
/** * initialize the cache * @param maxEntries maximum number of entries expected in the cache * @param loadFactor the load factor * @param timeout to be used to trim the expired entries * @param props opaque list of properties for a given cache implementation * @throws a generic Exception if the initialization failed */ public void init(int maxEntries, long timeout, float loadFactor, Properties props) { // if the max entries is <= 0 then set the default max entries if (maxEntries <= 0) { maxEntries = defaultMaxEntries; // mark this cache unbounded isUnbounded = true; } setTimeout(timeout); super.init(maxEntries, loadFactor, props); }