ActiveCacheOverride Class — spring-boot Architecture
Architecture documentation for the ActiveCacheOverride class in SoftReferenceConfigurationPropertyCache.java from the spring-boot codebase.
Entity Profile
Source Code
core/spring-boot/src/main/java/org/springframework/boot/context/properties/source/SoftReferenceConfigurationPropertyCache.java lines 142–156
private record ActiveCacheOverride(SoftReferenceConfigurationPropertyCache<?> cache, @Nullable Duration timeToLive,
@Nullable Instant lastAccessed, AtomicBoolean active) implements CacheOverride {
ActiveCacheOverride(SoftReferenceConfigurationPropertyCache<?> cache) {
this(cache, cache.timeToLive, cache.lastAccessed, new AtomicBoolean());
}
@Override
public void close() {
if (active().compareAndSet(false, true)) {
this.cache.restore(this);
}
}
}
Source
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free