Uses of Enum Class
org.apache.maven.api.cache.CacheRetention
Packages that use CacheRetention
Package
Description
Provides a caching infrastructure for Maven requests and their results.
-
Uses of CacheRetention in org.apache.maven.api.cache
Methods in org.apache.maven.api.cache that return CacheRetentionModifier and TypeMethodDescriptionCacheMetadata.getCacheRetention()Returns the cache retention that should be applied to the associated data.static CacheRetentionReturns the enum constant of this class with the specified name.static CacheRetention[]CacheRetention.values()Returns an array containing the constants of this enum class, in the order they are declared. -
Uses of CacheRetention in org.apache.maven.impl.cache
Methods in org.apache.maven.impl.cache that return CacheRetentionModifier and TypeMethodDescriptionCacheStatistics.RetentionStatistics.getRetention()CacheConfig.scope()Returns the value of thescoperecord component.PartialCacheConfig.scope()Returns the value of thescoperecord component.Methods in org.apache.maven.impl.cache that return types with arguments of type CacheRetentionModifier and TypeMethodDescriptionCacheStatistics.getCacheSizes()CacheStatistics.ReferenceTypeStatistics.getCreationsByRetention()CacheStatistics.getKeyEvictionsByRetention()Returns eviction statistics by retention policy.CacheStatistics.getRetentionStatistics()CacheStatistics.getValueEvictionsByRetention()Returns value eviction statistics by retention policy.Methods in org.apache.maven.impl.cache with parameters of type CacheRetentionModifier and TypeMethodDescriptionstatic PartialCacheConfigPartialCacheConfig.complete(CacheRetention scope, Cache.ReferenceType referenceType) Creates a complete partial configuration with both scope and reference type.voidCacheStatistics.recordCacheCreation(String keyRefType, String valueRefType, CacheRetention retention) Records cache creation with specific reference types.voidCacheStatistics.recordHit(String requestType, CacheRetention retention) Records a cache hit for the given request type and retention policy.voidCacheStatistics.recordKeyEviction(CacheRetention retention) Records a key eviction for the specified retention policy.voidCacheStatistics.recordMiss(String requestType, CacheRetention retention) Records a cache miss for the given request type and retention policy.voidCacheStatistics.recordValueEviction(CacheRetention retention) Records a value eviction for the specified retention policy.voidCacheStatistics.registerCacheSizeSupplier(CacheRetention retention, Supplier<Long> sizeSupplier) Registers a cache size supplier for the given retention policy.static CacheConfigCacheConfig.withKeyValueReferenceTypes(CacheRetention scope, Cache.ReferenceType keyReferenceType, Cache.ReferenceType valueReferenceType) Creates a cache configuration with separate key and value reference types.static CacheConfigCacheConfig.withScope(CacheRetention scope) Creates a cache configuration with the specified scope and default SOFT reference type.static PartialCacheConfigPartialCacheConfig.withScope(CacheRetention scope) Creates a partial configuration with only scope specified.Constructors in org.apache.maven.impl.cache with parameters of type CacheRetentionModifierConstructorDescriptionCacheConfig(CacheRetention scope, Cache.ReferenceType referenceType) Backward compatibility constructor.CacheConfig(CacheRetention scope, Cache.ReferenceType referenceType, Cache.ReferenceType keyReferenceType, Cache.ReferenceType valueReferenceType) Creates an instance of aCacheConfigrecord class.PartialCacheConfig(CacheRetention scope, Cache.ReferenceType referenceType) Creates an instance of aPartialCacheConfigrecord class. -
Uses of CacheRetention in org.apache.maven.impl.model
Methods in org.apache.maven.impl.model that return CacheRetention