Class CacheEviction
java.lang.Object
io.fluxcapacitor.javaclient.persisting.caching.CacheEviction
Represents an eviction from a
Cache
.
These events are typically emitted when a cached object is removed from memory due to expiration, memory pressure, manual eviction, or cache size constraints.
Eviction events are useful for metrics reporting and operational observability, particularly when monitoring cache hit/miss ratios and understanding retention behaviors under load.
Emitted events can be published to the metrics log via CacheEvictionsLogger
and consumed downstream for
alerts or analysis.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enum
Indicates the cause for a cache entry eviction. -
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
CacheEviction
public CacheEviction()
-