Class JavaScalaConverters.AsJavaCachingVersionedGenericLayerReader<T>
java.lang.Object
com.here.platform.data.client.v2.api.JavaScalaConverters.AsJavaVersionedGenericLayerReader<T>
com.here.platform.data.client.v2.api.JavaScalaConverters.AsJavaCachingVersionedGenericLayerReader<T>
- All Implemented Interfaces:
CachingVersionedGenericLayerReader<T>
,VersionedGenericLayerReader<T>
- Enclosing class:
- JavaScalaConverters
public static class JavaScalaConverters.AsJavaCachingVersionedGenericLayerReader<T>
extends JavaScalaConverters.AsJavaVersionedGenericLayerReader<T>
implements CachingVersionedGenericLayerReader<T>
-
Constructor Summary
ConstructorsConstructorDescriptionAsJavaCachingVersionedGenericLayerReader
(com.here.platform.data.client.v2.api.scaladsl.versioned.CachingVersionedGenericLayerReader<T> asScala) -
Method Summary
Modifier and TypeMethodDescriptioncom.here.platform.data.client.v2.api.scaladsl.versioned.CachingVersionedGenericLayerReader<T>
asScala()
void
Downloads the data for the requested versions of the given partitionIds and puts it into the cache for later retrieval.Downloads the data for the requested versions of the given partitionIds and puts it into the cache for later retrieval.Methods inherited from class com.here.platform.data.client.v2.api.JavaScalaConverters.AsJavaVersionedGenericLayerReader
read
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.here.platform.data.client.v2.api.javadsl.versioned.VersionedGenericLayerReader
read
-
Constructor Details
-
AsJavaCachingVersionedGenericLayerReader
public AsJavaCachingVersionedGenericLayerReader(com.here.platform.data.client.v2.api.scaladsl.versioned.CachingVersionedGenericLayerReader<T> asScala)
-
-
Method Details
-
asScala
public com.here.platform.data.client.v2.api.scaladsl.versioned.CachingVersionedGenericLayerReader<T> asScala()- Overrides:
asScala
in classJavaScalaConverters.AsJavaVersionedGenericLayerReader<T>
-
preload
Description copied from interface:CachingVersionedGenericLayerReader
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.
- Specified by:
preload
in interfaceCachingVersionedGenericLayerReader<T>
-
preloadAsync
public CompletionStage<Void> preloadAsync(Iterable<Long> versions, Iterable<String> partitionIds, Executor executor) Description copied from interface:CachingVersionedGenericLayerReader
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.
- Specified by:
preloadAsync
in interfaceCachingVersionedGenericLayerReader<T>
-