Package org.chaidb.db.helper.cache.algorithm

Examples of org.chaidb.db.helper.cache.algorithm.MeasurableLRU


        if (cacheSizeInBytes <= 0) {
            throw new IllegalArgumentException("cacheSizeInBytes must be larger than 0");
        } else {
            if (algorithmName == null) {
                algorithm = new MeasurableLRU(cacheSizeInBytes);
            } else if (algorithmName.equals("LRU")) {
                algorithm = new MeasurableLRU(cacheSizeInBytes);
            } else if (algorithmName.equals("FIFO")) {
                algorithm = new MeasurableFIFO(cacheSizeInBytes);
            } else {
                throw new IllegalArgumentException("unknown replacement algorithm: " + algorithmName);
            }
View Full Code Here

TOP

Related Classes of org.chaidb.db.helper.cache.algorithm.MeasurableLRU

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.