Interface CachingVersionedHereTileLayerReader<T>

All Superinterfaces:
VersionedHereTileLayerReader<T>
All Known Implementing Classes:
JavaScalaConverters.AsJavaCachingVersionedHereTileLayerReader

public interface CachingVersionedHereTileLayerReader<T> extends VersionedHereTileLayerReader<T>
  • Method Details

    • preload

      void preload(Iterable<Long> versions, Iterable<Long> tileIds)
      Downloads the data for the requested versions of the given tileIds 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<Long> tileIds, Executor executor)
      Downloads the data for the requested versions of the given tileIds 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.