Class CacheEvictionEvent

java.lang.Object
io.fluxcapacitor.javaclient.persisting.caching.CacheEvictionEvent

public class CacheEvictionEvent extends Object
Represents an eviction event 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:
  • Constructor Details

    • CacheEvictionEvent

      public CacheEvictionEvent()