Package org.apache.camel.util

Examples of org.apache.camel.util.LRUCache


     * @return the hits
     */
    public long getHits() {
        long hits = -1;
        if (consumers instanceof LRUCache) {
            LRUCache cache = (LRUCache) consumers;
            hits = cache.getHits();
        }
        return hits;
    }
View Full Code Here


     * @return the misses
     */
    public long getMisses() {
        long misses = -1;
        if (consumers instanceof LRUCache) {
            LRUCache cache = (LRUCache) consumers;
            misses = cache.getMisses();
        }
        return misses;
    }
View Full Code Here

    /**
     * Resets the cache statistics
     */
    public void resetCacheStatistics() {
        if (consumers instanceof LRUCache) {
            LRUCache cache = (LRUCache) consumers;
            cache.resetStatistics();
        }
    }
View Full Code Here

     * @return the capacity
     */
    public int getCapacity() {
        int capacity = -1;
        if (producers instanceof LRUCache) {
            LRUCache cache = (LRUCache) producers;
            capacity = cache.getMaxCacheSize();
        }
        return capacity;
    }
View Full Code Here

     * @return the hits
     */
    public long getHits() {
        long hits = -1;
        if (producers instanceof LRUCache) {
            LRUCache cache = (LRUCache) producers;
            hits = cache.getHits();
        }
        return hits;
    }
View Full Code Here

     * @return the misses
     */
    public long getMisses() {
        long misses = -1;
        if (producers instanceof LRUCache) {
            LRUCache cache = (LRUCache) producers;
            misses = cache.getMisses();
        }
        return misses;
    }
View Full Code Here

    /**
     * Resets the cache statistics
     */
    public void resetCacheStatistics() {
        if (producers instanceof LRUCache) {
            LRUCache cache = (LRUCache) producers;
            cache.resetStatistics();
        }
    }
View Full Code Here

     * @return the capacity
     */
    public int getCapacity() {
        int capacity = -1;
        if (producers instanceof LRUCache) {
            LRUCache cache = (LRUCache) producers;
            capacity = cache.getMaxCacheSize();
        }
        return capacity;
    }
View Full Code Here

     * @return the hits
     */
    public long getHits() {
        long hits = -1;
        if (producers instanceof LRUCache) {
            LRUCache cache = (LRUCache) producers;
            hits = cache.getHits();
        }
        return hits;
    }
View Full Code Here

     * @return the misses
     */
    public long getMisses() {
        long misses = -1;
        if (producers instanceof LRUCache) {
            LRUCache cache = (LRUCache) producers;
            misses = cache.getMisses();
        }
        return misses;
    }
View Full Code Here

TOP

Related Classes of org.apache.camel.util.LRUCache

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.