Interface CachingVersionedGenericLayerReader<T>

All Superinterfaces:
VersionedGenericLayerReader<T>
All Known Implementing Classes:
JavaScalaConverters.AsJavaCachingVersionedGenericLayerReader

public interface CachingVersionedGenericLayerReader<T> extends VersionedGenericLayerReader<T>
  • Method Details

    • preload

      void preload(Iterable<Long> versions, Iterable<String> partitionIds)
      Downloads the data for the requested versions of the given partitionIds and puts it into the cache for later retrieval.

      If the data does not fit into the cache completely, this might evict entries from the cache.

    • preloadAsync

      CompletionStage<Void> preloadAsync(Iterable<Long> versions, Iterable<String> partitionIds, Executor executor)
      Downloads the data for the requested versions of the given partitionIds and puts it into the cache for later retrieval.

      If the data does not fit into the cache completely, this might evict entries from the cache.

      Please note that using a work stealing thread pool might lead to starvation.