Home | History | Annotate | Download | only in cache

Lines Matching full:maximumweight

93  * {@linkplain #maximumSize(long) maximumSize}, {@linkplain #maximumWeight(long) maximumWeight},
99 * {@linkplain #maximumWeight(long) maximumWeight} is requested entries may be evicted on each cache
206 long maximumWeight = UNSET_INT;
345 checkState(this.maximumWeight == UNSET_INT, "maximum weight was already set to %s",
346 this.maximumWeight);
372 public CacheBuilder<K, V> maximumWeight(long weight) {
373 checkState(this.maximumWeight == UNSET_INT, "maximum weight was already set to %s",
374 this.maximumWeight);
377 this.maximumWeight = weight;
384 * into consideration by {@link #maximumWeight(long)} when determining which entries to evict, and
385 maximumWeight(long)} prior to
429 return (weigher == null) ? maximumSize : maximumWeight;
766 checkState(maximumWeight == UNSET_INT, "maximumWeight requires weigher");
769 checkState(maximumWeight != UNSET_INT, "weigher requires maximumWeight");
771 if (maximumWeight == UNSET_INT) {
772 logger.log(Level.WARNING, "ignoring weigher specified without maximumWeight");
791 if (maximumWeight != UNSET_INT) {
793 s.add("maximumSize", maximumWeight);
795 s.add("maximumWeight", maximumWeight);