Class WriterCacheManager.Default

    • Method Detail

      • getStringCache

        @NotNull
        public @NotNull Cache<java.lang.String,​RecordId> getStringCache​(int generation)
        Specified by:
        getStringCache in class WriterCacheManager
        Returns:
        cache for string records of the given generation and operation.
      • getNodeCache

        @NotNull
        public @NotNull Cache<java.lang.String,​RecordId> getNodeCache​(int generation)
        Specified by:
        getNodeCache in class WriterCacheManager
        Returns:
        cache for node records of the given generation and operation.
      • accumulateRecordCacheSizes

        @NotNull
        public static <T> @NotNull org.apache.jackrabbit.guava.common.base.Supplier<java.lang.Long> accumulateRecordCacheSizes​(java.lang.Iterable<RecordCache<T>> caches)
      • accumulateRecordCacheWeights

        @NotNull
        public static <T> @NotNull org.apache.jackrabbit.guava.common.base.Supplier<java.lang.Long> accumulateRecordCacheWeights​(java.lang.Iterable<RecordCache<T>> caches)
      • evictCaches

        protected final void evictCaches​(org.apache.jackrabbit.guava.common.base.Predicate<java.lang.Integer> generations)
        Remove all cache generations matching the passed generations predicate.
        Parameters:
        generations -