/** * Returns the size of each segment */ public Integer getSegmentSize() { return (Integer) multiLruCache.getStatByName( Constants.STAT_MULTILRUCACHE_SEGMENT_SIZE); }
/** * Returns the legnth of the segment list */ public Integer[] getSegmentListLength() { return (Integer[]) multiLruCache.getStatByName( Constants.STAT_MULTILRUCACHE_SEGMENT_LIST_LENGTH); } }
/** * Returns the legnth of the segment list */ public Integer[] getSegmentListLength() { return (Integer[]) multiLruCache.getStatByName( Constants.STAT_MULTILRUCACHE_SEGMENT_LIST_LENGTH); } }
/** * Returns the legnth of the segment list */ public Integer[] getSegmentListLength() { return (Integer[]) multiLruCache.getStatByName( Constants.STAT_MULTILRUCACHE_SEGMENT_LIST_LENGTH); } }
/** * Returns the number of entries that have been trimmed */ public Integer getTrimCount() { return (Integer) multiLruCache.getStatByName( Constants.STAT_MULTILRUCACHE_TRIM_COUNT); }
/** * Returns the legnth of the segment list */ public Integer[] getSegmentListLength() { return (Integer[]) multiLruCache.getStatByName( Constants.STAT_MULTILRUCACHE_SEGMENT_LIST_LENGTH); } }
/** * Returns the number of entries that have been trimmed */ public Integer getTrimCount() { return (Integer) multiLruCache.getStatByName( Constants.STAT_MULTILRUCACHE_TRIM_COUNT); }
/** * Returns the size of each segment */ public Integer getSegmentSize() { return (Integer) multiLruCache.getStatByName( Constants.STAT_MULTILRUCACHE_SEGMENT_SIZE); }
/** * Returns the number of entries that have been trimmed */ public Integer getTrimCount() { return (Integer) multiLruCache.getStatByName( Constants.STAT_MULTILRUCACHE_TRIM_COUNT); }
/** * Returns the size of each segment */ public Integer getSegmentSize() { return (Integer) multiLruCache.getStatByName( Constants.STAT_MULTILRUCACHE_SEGMENT_SIZE); }
/** * Returns the number of entries that have been trimmed */ public Integer getTrimCount() { return (Integer) multiLruCache.getStatByName( Constants.STAT_MULTILRUCACHE_TRIM_COUNT); }
/** * Returns the size of each segment */ public Integer getSegmentSize() { return (Integer) multiLruCache.getStatByName( Constants.STAT_MULTILRUCACHE_SEGMENT_SIZE); }
/** * get the desired statistic counter * @param key to corresponding stat * @return an Object corresponding to the stat * See also: Constant.java for the key */ public Object getStatByName(String key) { Object stat = super.getStatByName(key); if (stat == null && key != null) { if (key.equals(Constants.STAT_BOUNDEDMULTILRUCACHE_CURRENT_SIZE)) stat = Long.valueOf(currentSize); else if (key.equals(Constants.STAT_BOUNDEDMULTILRUCACHE_MAX_SIZE)) { if (maxSize == Constants.DEFAULT_MAX_CACHE_SIZE) stat = Constants.STAT_DEFAULT; else stat = Long.valueOf(maxSize); } } return stat; }
/** * get the desired statistic counter * @param key to corresponding stat * @return an Object corresponding to the stat * See also: Constant.java for the key */ public Object getStatByName(String key) { Object stat = super.getStatByName(key); if (stat == null && key != null) { if (key.equals(Constants.STAT_BOUNDEDMULTILRUCACHE_CURRENT_SIZE)) stat = Long.valueOf(currentSize); else if (key.equals(Constants.STAT_BOUNDEDMULTILRUCACHE_MAX_SIZE)) { if (maxSize == Constants.DEFAULT_MAX_CACHE_SIZE) stat = Constants.STAT_DEFAULT; else stat = Long.valueOf(maxSize); } } return stat; }
/** * get the desired statistic counter * @param key to corresponding stat * @return an Object corresponding to the stat * See also: Constant.java for the key */ public Object getStatByName(String key) { Object stat = super.getStatByName(key); if (stat == null && key != null) { if (key.equals(Constants.STAT_BOUNDEDMULTILRUCACHE_CURRENT_SIZE)) stat = Long.valueOf(currentSize); else if (key.equals(Constants.STAT_BOUNDEDMULTILRUCACHE_MAX_SIZE)) { if (maxSize == Constants.DEFAULT_MAX_CACHE_SIZE) stat = Constants.STAT_DEFAULT; else stat = Long.valueOf(maxSize); } } return stat; }
/** * get the desired statistic counter * @param key to corresponding stat * @return an Object corresponding to the stat * See also: Constant.java for the key */ public Object getStatByName(String key) { Object stat = super.getStatByName(key); if (stat == null && key != null) { if (key.equals(Constants.STAT_BOUNDEDMULTILRUCACHE_CURRENT_SIZE)) stat = Long.valueOf(currentSize); else if (key.equals(Constants.STAT_BOUNDEDMULTILRUCACHE_MAX_SIZE)) { if (maxSize == Constants.DEFAULT_MAX_CACHE_SIZE) stat = Constants.STAT_DEFAULT; else stat = Long.valueOf(maxSize); } } return stat; }