/** * Returns the current size of the cache in bytes */ public Long getCurrentSize() { return (Long) boundedMultiLruCache.getStatByName( Constants.STAT_BOUNDEDMULTILRUCACHE_CURRENT_SIZE); }
/** * Returns the current size of the cache in bytes */ public Long getCurrentSize() { return (Long) boundedMultiLruCache.getStatByName( Constants.STAT_BOUNDEDMULTILRUCACHE_CURRENT_SIZE); }
/** * Returns the current size of the cache in bytes */ public Long getCurrentSize() { return (Long) boundedMultiLruCache.getStatByName( Constants.STAT_BOUNDEDMULTILRUCACHE_CURRENT_SIZE); }
/** * Returns the current size of the cache in bytes */ public Long getCurrentSize() { return (Long) boundedMultiLruCache.getStatByName( Constants.STAT_BOUNDEDMULTILRUCACHE_CURRENT_SIZE); }
/** * Returns the upper bound on the cache size */ public Long getMaxSize() { Object object = boundedMultiLruCache.getStatByName( Constants.STAT_BOUNDEDMULTILRUCACHE_MAX_SIZE); /* * BoundedMultiLruCache class returns java.lang.String with a value * "default" if the maxSize == Constants.DEFAULT_MAX_CACHE_SIZE * To take care of this case, the if/else is added below */ if (object instanceof String && ((String) object).equals(Constants.STAT_DEFAULT)) { return Long.valueOf(Constants.DEFAULT_MAX_CACHE_SIZE); } else { return (Long) object; } } }
/** * Returns the upper bound on the cache size */ public Long getMaxSize() { Object object = boundedMultiLruCache.getStatByName( Constants.STAT_BOUNDEDMULTILRUCACHE_MAX_SIZE); /* * BoundedMultiLruCache class returns java.lang.String with a value * "default" if the maxSize == Constants.DEFAULT_MAX_CACHE_SIZE * To take care of this case, the if/else is added below */ if (object instanceof String && ((String) object).equals(Constants.STAT_DEFAULT)) { return Long.valueOf(Constants.DEFAULT_MAX_CACHE_SIZE); } else { return (Long) object; } } }
/** * Returns the upper bound on the cache size */ public Long getMaxSize() { Object object = boundedMultiLruCache.getStatByName( Constants.STAT_BOUNDEDMULTILRUCACHE_MAX_SIZE); /* * BoundedMultiLruCache class returns java.lang.String with a value * "default" if the maxSize == Constants.DEFAULT_MAX_CACHE_SIZE * To take care of this case, the if/else is added below */ if (object instanceof String && ((String) object).equals(Constants.STAT_DEFAULT)) { return Long.valueOf(Constants.DEFAULT_MAX_CACHE_SIZE); } else { return (Long) object; } } }
/** * Returns the upper bound on the cache size */ public Long getMaxSize() { Object object = boundedMultiLruCache.getStatByName( Constants.STAT_BOUNDEDMULTILRUCACHE_MAX_SIZE); /* * BoundedMultiLruCache class returns java.lang.String with a value * "default" if the maxSize == Constants.DEFAULT_MAX_CACHE_SIZE * To take care of this case, the if/else is added below */ if (object instanceof String && ((String) object).equals(Constants.STAT_DEFAULT)) { return Long.valueOf(Constants.DEFAULT_MAX_CACHE_SIZE); } else { return (Long) object; } } }