Class MetadataCacheBuilder
java.lang.Object
com.here.platform.data.client.v2.caching.caffeine.javadsl.MetadataCacheBuilder
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a MetadataCacheBuilder from a configuration. -
Method Summary
Modifier and TypeMethodDescriptioncom.github.benmanes.caffeine.cache.Cache<LayerMetadataKey,
OptionalLayerMetadata> build()
configure
(Function<com.github.benmanes.caffeine.cache.Caffeine<? super LayerMetadataKey, ? super OptionalLayerMetadata>, com.github.benmanes.caffeine.cache.Caffeine<? super LayerMetadataKey, ? super OptionalLayerMetadata>> f)
-
Constructor Details
-
MetadataCacheBuilder
Creates a MetadataCacheBuilder from a configuration.The builder sets the eviction policy of the underlying cache based on the provided configuration. On top of that also stats recording is enabled.
-
-
Method Details
-
build
-
configure
public MetadataCacheBuilder configure(Function<com.github.benmanes.caffeine.cache.Caffeine<? super LayerMetadataKey, ? super OptionalLayerMetadata>, com.github.benmanes.caffeine.cache.Caffeine<? super LayerMetadataKey, ? super OptionalLayerMetadata>> f)
-